关于python2.7中matplotlib模块的安装

来源:互联网 发布:springboot 初始化sql 编辑:程序博客网 时间:2024/06/05 09:26

用easy-install安装matplotlib时报错:

                        * The following required packages can not be built:                          * freetypeerror: Setup script exited with 1
那就安装freetye和png这两个库:
sudo apt-get install libfreetype6-devsudo apt-get install libpng12-dev
另外还需安装几个matplotlib依赖的几个模块:
sudo easy_install numpysudo easy_install tornadosudo easy_install pyparsing

0 0
原创粉丝点击