matplotlib安装

我是之前已经安装了pip,所以现在直接用pip安装matplotlib模块。

调出cmd窗口,然后 

1. 执行 python -m pip install -U pip setuptools 进行升级

matplotlib安装


2. 执行 python -m pip install matplotlib 进行自动下载安装

matplotlib安装


3. 执行 python -m pip list 查看安装的模块中是否有matplotlib

matplotlib安装

最后,运行 import matplotlib 没报错就可以了。

matplotlib安装