由于python 3.5还没有用于matplotlib的official release,所以我尝试使用pip。在windows 64bit安装matplotlib python 3.5
pip install matplotlib
它说我缺少一些需要的依赖和扩展
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.10.0.post2]
six: yes [using six version 1.9.0]
dateutil: yes [using dateutil version 2.4.2]
pytz: yes [using pytz version 2015.6]
tornado: yes [using tornado version 4.2.1]
pyparsing: yes [using pyparsing version 2.0.3]
pycxx: yes [Official versions of PyCXX are not compatible
with matplotlib on Python 3.x, since they lack
support for the buffer object. Using local copy]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: no [The C/C++ header for freetype (ft2build.h)
could not be found. You may need to install the
development package.]
png: no [The C/C++ header for png (png.h) could not be
found. You may need to install the development
package.]
qhull: yes [pkg-config information for 'qhull' could not be
found. Using local copy.]
[...]
Command "python setup.py egg_info" failed with error code 1 in C:\Users\me\AppData\Local\Temp\pip-build-bjiqixce\matplotlib
但我有我的系统上安装的FreeType和PNG。
C:\Users\me>where ft2build.h
C:\Users\me\libs\GnuWin32\include\ft2build.h
C:\Users\me>where png.h
C:\Users\me\libs\GnuWin32\include\png.h
所有这些都以普通用户权限安装。我在这里做错了什么?
编辑:yay python 3.5版本现在存在。
的评论太感谢你了:d安装cmake的足以让画中画安装工作。 – Nozdrum
没问题,很高兴我可以帮忙。 – Deathrast