1.下载安装Python
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
2.下载安装NumPy
官网地址:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
点击numpy-1.10.4+mkl-cp27-cp27m-win_amd64.whl开始下载。
复制numpy-1.10.4+mkl-cp27-cp27m-win_amd64.whl到Python安装目录的Scripts目录下。
切换命令行到Scripts目录,通过下面命令安装:
C:\Python27\Scripts>pip install numpy-1.13.1+mkl-cp27-cp27m-win_amd64.whl
输出如下:
Processing c:\python27\scripts\numpy-1.13.1+mkl-cp27-cp27m-win_amd64.whl
Installing collected packages: numpy
Successfully installed numpy-1.13.1+mkl
检查安装:
C:\Python27\Scripts>python
>>>import numpy as np
如果不报错表示成功!
3.下载安装SciPy
官网地址:
http://www.lfd.uci.edu/~gohlke/pythonlibs
点击scipy‑0.19.1‑cp27‑cp27m‑win_amd64.whl开始下载。
复制scipy‑0.19.1‑cp27‑cp27m‑win_amd64.whl到Python安装目录的Scripts目录下。
切换命令行到Scripts目录,通过下面命令安装:
C:\Python27\Scripts>pip install scipy-0.19.1-cp27-cp27m-win_amd64.whl
输出如下:
Processing c:\python27\scripts\scipy-0.19.1-cp27-cp27m-win_amd64.whl
Requirement already satisfied: numpy>=1.8.2 in c:\python27\lib\site-packages (from scipy==0.19.1)
Installing collected packages: scipy
Successfully installed scipy-0.19.1
4.下载安装Matplotlib
可以参考官网:
http://matplotlib.org/users/installing.html
也可以直接按下面命令安装:
C:\Python27\Scripts>pip install matplotlib
检查安装,通过下面代码画一条直线:
>>>from matplotlib import pyplot
>>>pyplot.plot([1, 2, 3, 4], [1, 2, 3, 4])
>>>pyplot.show()