Linux-Centos系统下安装Matplotlib

安装matplotlib需要很多依赖包,有个捷径自动安装。

1.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

2. 选择最下方的那个,安装。需要root权限的话,添加

sudo yum install python-matplotlib.x86_64

它会把一切依赖给你装上。

你可能感兴趣的:(Linux-Centos系统下安装Matplotlib)