Note: After installing the Python3.6 environment, Python3.6 does not come with the above installation packages, and the above basic packages need to be installed separately.
1. Go to the Python official website to download the corresponding Python version (official website link https://www.python.org/), here choose Python3.6.4 to download, pay attention to whether it is 32-bit or 64-bit when downloading.
2. Install python3.6 , there is add to path in the installation options, remember to check it. If add to path is not selected at this time, you need to add environment variables to the system after the installation is complete, which can be done by Baidu.
3. Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/ to download the corresponding package file: My version is python3.6, so the corresponding downloaded numpy, scipy, matplotlib files are as follows:
matplotlib-2.0.2-cp36-cp36m-win_amd64.whl
numpy-1.13.1+mkl-cp36-cp36m-win_amd64.whl
scipy-0.19.1-cp36-cp36m-win_amd64.whl
Note: cp3.6 is the python3.6 version, and win_amd64 is the 64-bit window system. It should be noted that numpy needs to download the version with mkl, because the scipy installation needs to be in numpy+mkl to be successful.
4. Installation. First of all because the scipy installation needs to be in numpy+mkl to be successful. So you need to install numpy+mkl first.
Enter the path of pip3 install + file under cmd . Such as
pip3 install C:\Users\nml\Desktop\numpy-1.13.1+mkl-cp36-cp36m-win_amd64.whl
pip3 install C:\Users\nml\Desktop\scipy-0.19.1-cp36-cp36m-win_amd64.whl
pip3 install C:\Users\nml\Desktop\matplotlib-2.0.2-cp36-cp36m-win_amd64.whl
After the installation is successful, there are corresponding files in lib/site-packages . You can also enter pip list under cmd to view the successfully installed packages.
In addition, you can also test whether the installation is successful by the following methods,
Enter the following command under python . If no error is reported, the installation is successful and you can learn happily:
import numpy
import scipy
import matplotlib
In addition, some articles pointed out that this method can also be installed under the 64-bit Win10 system.