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

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容