Tôi muốn sử dụng matplotlib.pyplot. Tôi không thể vìpip install matplotlib failed: 'không thể xây dựng gói freetype; "python setup.py egg_info" không thành công với mã lỗi 1 '
[email protected]:~/ $ pip install matplotlib
được thất bại trên ubuntu 14 đưa ra một lỗi egg_info, và cảnh báo "không thể xây dựng gói 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
Nhưng
[email protected]:~/$ 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 của tôi là tại đây: http://pastebin.com/rvDuYDiy
Thảo luận về vấn đề này trên github đã bị đóng vào năm ngoái, b ut tôi đã không thể sử dụng nó để giải quyết vấn đề (tôi đã để lại một lưu ý):
https://github.com/matplotlib/matplotlib/issues/3029
tôi started a thread reddit quá, nhưng tôi không có đủ uy tín để liên kết nó ... Tôi sử dụng altoidnerd trên reddit, và nó là trong/r/learnpython
Bạn đã bao giờ giải quyết vấn đề này? Tôi đang có cùng một bây giờ nhưng 'ln -s' đã bị vô hiệu hóa trong hệ điều hành gần đây để các thư mục cốt lõi. – cosmosis