pip matplotlib报错equired packages can not be built解决
pip安装matplotlib
在centos6.5 64bit上用pip安装matplotlib时候报错:
* The following required packages can not be built:
* freetype, png
error: Setup script exited with 1
这是因为pip不能安装操作系统的依赖库导致的,需要用yum手动安装:
$ yum -y install freetype-devel libpng-devel
如果不知道这些库需要安装的包名,可以查一下:
$ yum search freetype | grep devel freetype-devel.i686 : FreeType development libraries and header files freetype-devel.x86_64 : FreeType development libraries and header files $ yum search png | grep devel libpng-devel.i686 : Development tools for programs to manipulate PNG image libpng-devel.x86_64 : Development tools for programs to manipulate PNG image
referance:
总结
以上就是本文关于pip matplotlib报错equired packages can not be built解决的全部内容,希望对大家有所帮助。感兴趣的朋友可以继续参阅本站其他相关专题,如有不足之处,欢迎留言指出。感谢朋友们对本站的支持!
相关文章
python 使用get_argument获取url query参数
这篇文章主要介绍了python 使用get_argument获取url query参数的相关资料,需要的朋友可以参考下2017-04-04
linux centos 7.x 安装 python3.x 替换 python2.x的过程解析
这篇文章主要介绍了linux centos 7.x 安装 python3.x 替换 python2.x的过程解析,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下2020-12-12
Python pass语句作用和Python assert断言函数的用法
这篇文章主要介绍了Python pass语句作用和Python assert断言函数的用法,文章内容介绍详细具有一定的参考价值,需要的小伙伴可以参考一下,希望对你有所帮助2022-03-03
将tensorflow.Variable中的某些元素取出组成一个新的矩阵示例
今天小编就为大家分享一篇将tensorflow.Variable中的某些元素取出组成一个新的矩阵示例,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧2020-01-01


最新评论