Install numpy, matplotlib, and numpymatplotlib
Installing some extension packages in python makes the function more powerful. I encountered some minor problems when I first started the installation. Now I want to record it so that I can forget it later. You can refer to it.
Method 1: offline Installation
1, first download Numpy, MatplotLib these two libraries, web site https://www.lfd.uci.edu /~ Gohlke/pythonlibs/, my is python3.5 64bit, so the download is the numpy-1.13.3 + mkl-cp35-cp35m-win amd64.whl
If the version is incorrect, an error is reported during installation.
2, cmd, then cd to pip install numpy-1.13.3 + mkl-cp35-cp35m-win amd64.whl path, Through pip install numpy-1.13.3 + mkl-cp35-cp35m-win amd64.whl installation (Supplement: The premise is that pip has been installed, and set the environment variables. pip is in the scripts directory of the python installation directory)
3. Check whether the installation is successful after installation.
Install matplotlib.
Method 2: Online installation (recommended and easy to use)
1. Make sure pip has been installed.
2, because the direct use of foreign pip image installation, may fail, then we want to use domestic pip image, we recommend Tsinghua University https://pypi.tuna.tsinghua.edu.cn/simple
Then cmd, then pip install-I https://pypi.tuna.tsinghua.edu.cn/simple numpy, so that the image from Tsinghua side to install the numpy library ..
If you want to use pip more conveniently next time, create a pip directory in the user directory, for example, C: \ Users \ xx \ pip. Create the pip. ini file. The content is as follows:
[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple