1:打开cmd命令行界面
2:切换路径到对应的安装路径下,该文件是提前下载好的。numpy链接:https://pypi.org/project/numpy/#files
命令:pip install C:\Users\name\Desktop\numpy-1.15.0-cp36-none-win_amd64.whl
3:直接网络安装matplotlib。
命令python -m pip install matplotlib
4.验证:>>> import numpy
>>> numpy.__version__
'1.15.0'
>>> import matplotlib
>>> matplotlib.__version__
'2.2.3'