pip install matplotlib fails: 'cannot build package freetype; “python setup.py egg_info” failed with error code 1'

核能气质少年 提交于 2019-12-05 06:20:24

This did the trick for me:

sudo apt-get install libfreetype6-dev pkg-config

The following command mentioned in the github thread that you mentioned above works for me:

sudo ln -s /usr/include/freetype2/ft2build.h /usr/include/

kalen coleman

I had a similar issue solved by:

easy_install -U pip

pip install matplotlib
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!