pip matplotlib报错equired packages can not be built解决

发布时间:2020-09-26 07:14:07 作者:AndersJing
来源:脚本之家 阅读:344

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:

matplotlib简介,安装和简单实例代码

python的numpy模块安装不成功简单解决方法总结

总结

以上就是本文关于pip matplotlib报错equired packages can not be built解决的全部内容,希望对大家有所帮助。感兴趣的朋友可以继续参阅本站其他相关专题,如有不足之处,欢迎留言指出。感谢朋友们对本站的支持!

推荐阅读:
  1. 如何在python使用pip安装SciPy和SymPy
  2. pip安装py_zipkin时提示的SSL问题怎么办

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

python pip matplotlib

上一篇:使用Python代码实现Linux中的ls遍历目录命令的实例代码

下一篇:jQuery表格的维护和删除操作

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》