【发布时间】:2015-11-05 04:16:06
【问题描述】:
由于 python 3.5 的 matplotlib 还没有 official release,所以我尝试使用 pip。
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
所有这些都以普通用户权限安装。我在这里做错了什么?
编辑:是的,python 3.5 版本现已存在。
【问题讨论】:
标签: python matplotlib