https://blog.youkuaiyun.com/qq_36321646/article/details/80207157
一:在Python编程从入门到实践这本书之中讲到linux下安装matplotlib 直接说是使用了一下命令
sudo apt-get install python3-matplotlib
如果是Python2.7则使用
sudo apt-get install python-matplotlib
如果是比较新的版本的python必须安装matplotlib的依赖库
[plain] view plain copy
- <code class="language-plain">sudo apt-get install python3.5-dev python3.5-tk tk-dev</code>
sudo apt-get install python3.5-dev python3.5-tk tk-dev
sudo apt-get install libfreetype6-dev g++
再来用pip安装matplotlib
pip install--user matplotlib
二:使用yum进行安装
yum install python-matplotlib.x86_64
yum search matplotlib
--------------------- 作者:兄弟我找实习 来源:优快云 原文:https://blog.youkuaiyun.com/qq_36321646/article/details/80207157?utm_source=copy 版权声明:本文为博主原创文章,转载请附上博文链接!