Centos7 安装 matplotlib问题

来源:互联网 发布:西门子编程线 编辑:程序博客网 时间:2024/06/05 21:52

最近使用Python过程中,需要使用matplotlib,但是在import的时候被告知没有该模块,那么就开始安装~

我是在安装了numpy的前提下安装matplotlib

刚开始我是使用pip进行安装:pip install matplotlib

然而问题来了:


重试,还是报错,想想有可能是依赖包没有加载完,所以换成yum命令进行更新安装:yum install python-matplotlib

再import matplotlib,no problem!


0 0
原创粉丝点击