安裝matplotlib需要很多依賴包肮蛹,有個(gè)捷徑自動(dòng)安裝。
1.yum search matplotlib
返回結(jié)果是:
[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. 選擇最下方的那個(gè)创南,安裝伦忠。需要root權(quán)限的話,添加
sudo yum install?python-matplotlib.x86_64
它會(huì)把一切依賴給你裝上扰藕。