您的位置:首页 > 其它

fatal error: png.h: no such file or directory

2014-04-11 16:11 543 查看
source : http://stackoverflow.com/questions/9829175/pip-install-matplotlib-error-with-virtualenv
Building Matplotlib requires
libpng
(and
freetype
, as well) which isn't a python library, so
pip
doesn't handle installing it (or
freetype
).

You'll need to install something along the lines of
libpng-devel
and
freetype-devel
(or whatever the equivalent is for your OS).

See the building requirements/instructions for matplotlib.

To generate graph in png format you need to Install following dependent packages

sudo apt-get install libpng-dev

sudo apt-get install libfreetype6-dev
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐