windows 环境
Python2 无法安装mysqlclient。Python3 无法安装MySQL-python、flup、functools32、Gooey、 Pywin32、 webencodings。
matplotlib 在 python3 环境中安装报错:The following required packages can not be built:freetype, png。需要手动下载安装源码包安装解决。
scipy 在 Python3 环境中安装报错,numpy.distutils.system_info.NotFoundError,需要自己手 工下载对应的安装包,依赖 numpy,pandas 必须严格根据 python 版本、操作系统、64 位与否。运行 matplotlib 后发现基础包 numpy+mkl 安装失败,需要自己下载,国内暂无下载源
centos 环境下
Python2 无法安装 mysql-python 和 mysqlclient 包,报错:EnvironmentError: mysql_config not found,解决方案是安装 mysql-devel 包解决。使用 matplotlib 报错:no module named _tkinter, 安装 Tkinter、tk-devel、tc-devel 解决。
pywin32 也无法在 centos 环境下安装。
python2和Python3相关工具包在不同环境的安装问题
博客介绍了Python在不同环境下安装包的问题及解决办法。在Windows环境,Python2和3安装部分包失败;matplotlib和scipy安装报错需手动下载安装包。在CentOS环境,Python2安装部分包报错,需安装对应开发包;使用matplotlib报错,安装相关组件解决;pywin32无法安装。


被折叠的 条评论
为什么被折叠?



