在终端输入如下命令:sudo pip3 install matplotlib
失败,提示如下:
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/matplotlib
Storing debug log for failure in /home/kaierlong/.pip/pip.log
解决方法:
安装freetype-dev包
sudo apt-get install libfreetype6-dev libxft-dev
再次安装matplotlib:
sudo pip3 install matplotlib
安装成功!
Ubuntu下安装numpy and matplotlib:http://www.linuxdiyf.com/linux/15623.html
Python:Ubuntu安装numpyscipymatplotlib:http://www.linuxdiyf.com/linux/14266.html
在Uubuntu 14.04 64bit上搭建NumPy函数库环境:http://www.linuxdiyf.com/linux/13985.html
在Ubuntu 14.04 64bit上安装numpy和matplotlib库:http://www.linuxdiyf.com/linux/13984.html
Python下科学计算包numpy和SciPy的安装:http://www.linuxdiyf.com/linux/2717.html