Python3.6安装matplotlib

Matplotlib 是一个 Python 的 2D绘图库,它以各种硬拷贝格式和跨平台的交互式环境生成出版质量级别的图形。

找到python3.6的安装目录,如C:\Users\admin\AppData\Local\Programs\Python\Python36

进而进入到Scripts目录下,观察目录下的文件:

Python3.6安装matplotlib

发现了pip.exe文件,从控制台进入Scripts下

Python3.6安装matplotlib

由于依赖性的原因,需要先下载Python3.6安装matplotlibPython3.6安装matplotlibnumpy,输入命令:

Python3.6安装matplotlib

等待下载,以及安装成功的结果展示如下:

Python3.6安装matplotlib

继续下载我们的Matplotlib,输入命令:

Python3.6安装matplotlib

我这里并没有下载过程,而是下面的情况(依个人而定吧):

Python3.6安装matplotlib

接下来再下载一个叫做scipy的文件:

Python3.6安装matplotlib

中间省略..........................

Python3.6安装matplotlib

三个包都已经安装完成,我们来看下是否能导入Matplotlib:

Python3.6安装matplotlib

导入无报错,说明安装成功

其他安装:

①pip install Pillow

②pip install opencv-python

(此贴小弟自用,大神勿喷,不足请补充!)