python中的Numpy、MatPlotLib和SciPy模块的安装
2017-03-31 19:45
676 查看
在使用Python进行数据处理时,经常使用到Numpy、MatPlotLib和SciPy这三个模块。在网上查了部分资料没有找到较为简单的安装方法,在安装过程中经常会遇到问题。下面详细说下我的安装过程。
1.安装Python。我安装的是3.6版本在安装配置中选择默认进行安装这里就不介绍了。
2.下载Numpy、MatPlotLib和SciPy,在第三方下载whl格式的文件。
Numpy:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
MatPlotLib:http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib
SciPy:http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
其中36代表python的版本 mkl库是安装scipy所需要的一个依赖库
3.把下载后的文件放到python安装目录的scripts下
4.顺序安装Numpy、MatPlotLib和SciPy
由于后两个库需要依赖numpy所以必须先安装numpy
在此目录下打开命令行窗口(快捷方式按住shift键点击鼠标右键 在此处打开命令窗口)
输入pip install xxx.whl进行安装
看到 Successfully installed numpy-1.12.1+mkl即为安装成功
5.验证在python的命令行中输入
>>> from numpy import *
>>> from scipy import *
>>> from matplotlib import *
没有错误就安装成功了
1.安装Python。我安装的是3.6版本在安装配置中选择默认进行安装这里就不介绍了。
2.下载Numpy、MatPlotLib和SciPy,在第三方下载whl格式的文件。
Numpy:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
MatPlotLib:http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib
SciPy:http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
其中36代表python的版本 mkl库是安装scipy所需要的一个依赖库
3.把下载后的文件放到python安装目录的scripts下
4.顺序安装Numpy、MatPlotLib和SciPy
由于后两个库需要依赖numpy所以必须先安装numpy
在此目录下打开命令行窗口(快捷方式按住shift键点击鼠标右键 在此处打开命令窗口)
输入pip install xxx.whl进行安装
pip install "numpy-1.12.1+mkl-cp36-cp36m-win_amd64.whl"
pip install matplotlib-2.0.0-cp36-cp36m-win_amd64.whl
pip install scipy-0.19.0-cp36-cp36m-win_amd64.whl
看到 Successfully installed numpy-1.12.1+mkl即为安装成功
5.验证在python的命令行中输入
>>> from numpy import *
>>> from scipy import *
>>> from matplotlib import *
没有错误就安装成功了
相关文章推荐
- Windows64位下各版本Python安装numpy,SciPy,matplotlib,Ipython模块
- python及相关模块库的安装教程,例如pygame,Numpy, Scipy, matplotlib和scikit-learn等模块sklearn库
- 64位32位windows7安装python34和python27,numpy,scipy,matplotlib,scikit-learn等第三方模块
- windows下python安装Numpy、Scipy、matplotlib模块
- 【编程语言】Python 使用包管理工具pip安装模块numpy、scipy、matplotlib以及scikit-learn CentOS 7
- liunx 环境下 python模块numpy,scipy,matplotlib 安装
- Ubuntu环境下完美安装python模块numpy,scipy,matplotlib
- 在win7下安装python开发环境和numpy,scipy,matplotlib模块的问题
- Python模块简介及安装 [numpy,pandas,matplotlib,scipy,statsmodels,Gensim,sklearn,keras]
- Python中的Numpy、SciPy、MatPlotLib安装与配置
- Python下的scipy,matplotlib,Numpy,six安装
- windows+Mac下安装Python以及科学计算套装安装(scipy、numpy、matplotlib)
- Python画图库 matplotlib, 数值计算库 numpy, 科学计算库 scipy 的安装
- Python包numpy、Matplotlib、SciPy在64位Windows上的安装
- ubuntu 下 python numpy,scipy,matplotlib安装
- python下安装numpy、matplotlib、scipy过程
- Python,NumPy,SciPy,Matplotlib安装及问题解决(win7,x64,软件version3.4)
- Numpy、SciPy、MatPlotLib在Python2.7.9下的安装与配置
- 在Windows Python3.4 上安装NumPy、Matplotlib、SciPy和IPython
- Ubuntu-Python2.7下安装 scipy,numpy,matplotlib,nose