查看文本打印 1 1

安装matplotlib的步骤

方法:
首先matplotlib是需要numpy先行包支持的,这里,我已经安装了numpy,下面安装matplotlib。
matplot需要一些其他软件支持
(1)这时需要安装freetype 和 png 这两个库,安装依赖的库。
yum install freetype freetype-devel python-freetype yum install libpng libpng-devel python-pypng
(2).yum search matplotlib
返回结果是:
[root@dn1 Desktop]# yum search matplotlib
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.NET
 * extras: mirrors.btte.Net
 * updates: mirrors.skyshe.cn
=========================== N/S matched: matplotlib ============================
Python-matplotlib-doc.x86_64 : Documentation files for python-matplotlib
python-matplotlib-qt4.x86_64 : Qt4 backend for python-matplotlib
python-matplotlib-tk.x86_64 : Tk backend for python-matplotlib
python-matplotlib.x86_64 : Python 2D plotting library
 
选择最下方的那个,安装
(3).yum install python-matplotlib.x86_64
它会把一切依赖给你装上。完毕。
 
 
最后面是安装成功。
posted @ 2017-01-19 19:27  天使_陈  阅读(1439)  评论(0编辑  收藏  举报