在windows的python里面安装matplotlib
1. 在网站上下载正确版本的matplotlib
https://pypi.python.org/pypi/matplotlib/
Python3.7版本 ,电脑系统64位,故下载一下版本
![](https://img2018.cnblogs.com/common/1930562/202001/1930562-20200131215435026-406374307.png)
2、下载后将文件复制至Python文件的的script目录下,注意这个目录里面有pip3.7
![](https://img2018.cnblogs.com/common/1930562/202001/1930562-20200131215621121-1259156905.png)
3、通过cmd打开命令提示符。
刚打开的命令提示符的路径是C:\Users\admin
![](https://img2018.cnblogs.com/common/1930562/202001/1930562-20200131215711246-1352831896.png)
4. 在目标路径后输入pip3.7 install matplotlib-3.1.2-cp37-cp37m-win_amd64.whl
![](https://img2018.cnblogs.com/common/1930562/202001/1930562-20200131215815815-552158553.png)
5、打开Python IDLE,输入import matplotlib,没有错误提示就是装好了。
![](https://img2018.cnblogs.com/common/1930562/202001/1930562-20200131215919384-279326311.png)