python安装numpy、scipy和matplotlib等whl包的方法
2017-04-27 18:49
781 查看
最近装了python和PyCharm开发环境,但是在安装numpy和matplotlib等包时出现了问题,现总结一下在windows平台下的安装方法。
由于现在找不到了工具包新版本的exe文件,所以采用了whl格式文件的安装。本人事先安装了python3.5.2,电脑是32位。
1、先安装wheel,在cmd窗口下输入:
pip install wheel
2、下载工具包:
numpy模块:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
scipy模块:http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
matplotlib模块:https://pypi.python.org/pypi/matplotlib
注意下载对应的python版本和windows版本的whl文件,比如本人下载的是:matplotlib-2.0.0rc2-cp35-cp35m-win32.whl (md5),其中cp35对应python3.5版本,win32对应32位的电脑。
3、安装whl文件,如把x.whl文件放在D盘根目录下,则在cmd输入:
pip install d:\x.whl
注意:
下载的.whl文件不要重命名;
安装顺序有讲究,可以先装numpy、scipy模块后装matplotlib,因为各模块之间有相互依赖关系,所以可以参考lfd.uci.edu网站上的安装要求,比如下图是安装matplotlib的要求,先把依赖的包装好。本人开始时安装matplotlib失败了,然后查看错误消息得知依赖包pytz自动安装失败,所以去下载并装好pytz包,最后才把matplotlib安装好。
各种包可以在python官网下载:https://pypi.python.org/pypi
如果以上安装过程嫌麻烦,也可以直接安装anaconda,因为这个发行版已经集成了很多有用的第三方包。
由于现在找不到了工具包新版本的exe文件,所以采用了whl格式文件的安装。本人事先安装了python3.5.2,电脑是32位。
1、先安装wheel,在cmd窗口下输入:
pip install wheel
2、下载工具包:
numpy模块:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
scipy模块:http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
matplotlib模块:https://pypi.python.org/pypi/matplotlib
注意下载对应的python版本和windows版本的whl文件,比如本人下载的是:matplotlib-2.0.0rc2-cp35-cp35m-win32.whl (md5),其中cp35对应python3.5版本,win32对应32位的电脑。
3、安装whl文件,如把x.whl文件放在D盘根目录下,则在cmd输入:
pip install d:\x.whl
注意:
下载的.whl文件不要重命名;
安装顺序有讲究,可以先装numpy、scipy模块后装matplotlib,因为各模块之间有相互依赖关系,所以可以参考lfd.uci.edu网站上的安装要求,比如下图是安装matplotlib的要求,先把依赖的包装好。本人开始时安装matplotlib失败了,然后查看错误消息得知依赖包pytz自动安装失败,所以去下载并装好pytz包,最后才把matplotlib安装好。
各种包可以在python官网下载:https://pypi.python.org/pypi
如果以上安装过程嫌麻烦,也可以直接安装anaconda,因为这个发行版已经集成了很多有用的第三方包。
相关文章推荐
- python安装numpy、scipy和matplotlib等whl包的方法
- Python中安装numpy,scipy,matplotlib安装方法
- ubuntu14 python2.7上安装scipy,numpy,matplotlib的方法
- Ubuntu-Python2.7安装 scipy,numpy,matplotlib
- 在Windows Python3.4 上安装NumPy、Matplotlib、SciPy和IPython
- windows+Mac下安装Python以及科学计算套装安装(scipy、numpy、matplotlib)
- python2.7.8在windows下安装numpy,scipy,matplotlib
- Python 2.7(3.x)以及numpy、matplotlib和scipy库三种方法实战安装
- python:安装numpy, Scipy,Matplotlib
- Python安装包括Numpy、matplotlib、dateutil、pyparsing、scipy
- Python画图库 matplotlib, 数值计算库 numpy, 科学计算库 scipy 的安装
- python科学计算numpy,scipy,matplotlib的安装
- python下安装numpy、matplotlib、scipy过程
- python scipy numpy matplotlib傻瓜式安装
- Python包numpy、Matplotlib、SciPy在64位Windows上的安装
- Python: Ubuntu 安装numpy,scipy,matplotlib
- Numpy、SciPy、MatPlotLib在Python2.7.9下的安装与配置
- Python下的scipy,matplotlib,Numpy,six安装
- Python Matplotlib的安装使用及Scipy,numpy,dateutil,pyparsing的安装
- Ubuntu-Python2.7安装 scipy,numpy,matplotlib