您的位置:首页 > 编程语言 > PHP开发

安装matplotlib遇到的问题

2015-11-04 16:12 645 查看
一,freetype

错误如下:

freetype: no [The C/C++ header for freetype2 (ft2build.h) could not be found. You may need to install the development package.]

解决方法:

wget http://download.savannah.gnu.org/releases/freetype/freetype-2.6.1.tar.bz2 tar -xjvf freetype-2.6.1.tar.bz2
cd freetype-2.6.1/
./configure --prefix=/usr/local
make
sudo make install


二,png

错误如下:

png: no [pkg-config information for 'libpng' could not be found.]

官方网站下载libpng.

tar -zxvf libpng-1.6.18.tar.gz
cd libpng-1.6.18/
./configure --prefix=/usr/local
make
sudo make install


三,zlib

错误如下:

configure: error: zlib not installed

官方网站下载zlib.

tar -zxvf zlib-1.2.8.tar.gz
cd zlib-1.2.8/
./configure --prefix=/usr/local
make
sudo make install


四,python-dev

错误如下:

SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.

解决方法,通过提示安装python-dev
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: