我想使用 matplotlib.pyplot。我不能因为
altoidnerd@LEPTON:~/ $ pip install matplotlib
在 ubuntu 14 上失败,给出 Egg_info 错误,并警告“无法构建包 freetype”
* The following required packages can not be built:
* freetype
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8UvQcW/matplotlib
But
altoidnerd@LEPTON:~/$ dpkg -L libfreetype6
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libfreetype.so.6.11.1
/usr/share
/usr/share/doc
/usr/share/doc/libfreetype6
/usr/share/doc/libfreetype6/FTL.TXT.gz
/usr/share/doc/libfreetype6/ft2faq.html
/usr/share/doc/libfreetype6/TODO
/usr/share/doc/libfreetype6/copyright
/usr/share/doc/libfreetype6/changelog.Debian.gz
/usr/share/doc/libfreetype6/pcf
/usr/share/doc/libfreetype6/pcf/README
/usr/lib/x86_64-linux-gnu/libfreetype.so.6
我的 debug.log 在这里:http://pastebin.com/rvDuYDiy http://pastebin.com/rvDuYDiy
github上关于这个问题的讨论去年就结束了,但我无法用它来解决问题(我留下了注释):
https://github.com/matplotlib/matplotlib/issues/3029 https://github.com/matplotlib/matplotlib/issues/3029
我开始了一个红迪帖子 https://www.reddit.com/r/learnpython/comments/2y89j0/pip_install_fail_command_python_setuppy_egg_info/ too.