【发布时间】:2015-05-08 23:13:58
【问题描述】:
我想使用 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
但是
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
去年github上关于这个的讨论已经结束,但是我无法用它来解决问题(我留了个笔记):
https://github.com/matplotlib/matplotlib/issues/3029
我也开了一个reddit thread。
【问题讨论】:
-
你解决过这个问题吗?我现在有同样的一个,但
ln -s在最近的操作系统中被禁用到核心目录。
标签: matplotlib pip freetype egg