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
You'll need to install something along the lines of
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
Building Matplotlib requires
libpng(and
freetype, as well) which isn't a python library, so
pipdoesn't handle installing it (or
freetype).
You'll need to install something along the lines of
libpng-develand
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
相关文章推荐
- fatal error: png.h: No such file or directory
- scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory
- lua.c:80:31: fatal error: readline/readline.h: No such file or directory
- scripts/kconfig/lxdialog/dialog.h:26:20: fatal error: curses.h: No such file or directory
- 使用bazel 编译tensorflow serving时报错:fatal error: Python.h: No such file or directory
- 出现问题:fatal error: ltdl.h: No such file or directory
- ua.c:80:31: fatal error: readline/readline.h: No such file or directory
- fatal error: ros/ros.h: No such file or directory
- caffe编译:fatal error: pyconfig.h: No such file or directory #include "pyconfig.h"
- Linux程序make过程中库文件缺失:cannot find -lixxx && fatal error: xxx.h: No such file or directory 解决方法参考
- Linux下修复“fatal error: jsoncpp/json/json.h: No such file or directory”
- fatal error: linux/compiler-gcc6.h: No such file or directory
- 编译boost python模块遇到的错误:../../libraries/boost_1_44_0/boost/python/detail/wrap_python.hpp:75:24: fatal error: patchlevel.h: No such file or directory
- cocos2d-x 移植到android中编译的一些问题:fatal error: Box2D/Box2D.h: No such file or directory"
- (诊断)处理错误fatal error: Python.h: No such file or directory
- fatal error: mysql/mysql.h: No such file or directory
- QT 嵌入式编译出错:cc1: fatal error: .pch/release-shared-emb-arm/QtGui: No such file or directory 解决方案:
- fatal error: cocostudio/CocoStudio.h: No such file or directory
- FIX POSTFIX "FATAL: OPEN DATABASE /ETC/ALIASES.DB: NO SUCH FILE OR DIRECTORY" ERROR
- 使用bazel 编译tensorflow serving时报错:fatal error: stropts.h: No such file or directory