python2.7 安装 matplotlib

错误问题:

pip install matplotlib
报错Failed building wheel for subprocess32;
centos7 下 python2.7 安装 matplotlib
以为少了subprocess32
便pip install subprocess32
还是同样的错误;

解决方案

1、gcc -v;查看系统的gcc版本,如果没有的话,即yum install gcc
2、yum install python2-devel
3、pip install subprocess32
4、pip install matplotlib
centos7 下 python2.7 安装 matplotlib

成功安装!

相关文章: