下载地址
win64系统选择这个:matplotlib-3.3.4-cp37-cp37m-win_amd64.whl (8.5 MB)
下载之后,复制到D:\Python36\Scripts目录下,在windows命令行下,转到D:\Python36\Scripts,运行
pip install matplotlib-3.3.4-cp37-cp37m-win_amd64.whl
报错:ERROR: matplotlib-3.3.4-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
见解决办法
安装指南:
Dependencies
Matplotlib requires the following dependencies:
Python (>= 3.6)
NumPy (>= 1.15)
setuptools
cycler (>= 0.10.0)
dateutil (>= 2.1)
kiwisolver (>= 1.0.0)
Pillow (>= 6.2)
pyparsing (>=2.0.3)
Optionally, you can also install a number of packages to enable better user interface toolkits. See What is a backend? for more details on the optional Matplotlib backends and the capabilities they provide.
Tk (>= 8.3, != 8.6.0 or 8.6.1): for the Tk-based backends.
PyQt4 (>= 4.6) or PySide (>= 1.0.3) [1]: for the Qt4-based backends.
PyQt5 or PySide2: for the Qt5-based backends.
PyGObject: for the GTK3-based backends [2].
wxPython (>= 4) [3]: for the wx-based backends.
pycairo (>= 1.11.0) or cairocffi (>= 0.8): for the GTK3 and/or cairo-based backends.
Tornado: for the WebAgg backend.
后来才发现的,运行下面的命令,安装得更快更全
pip install numpy scipy matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
或者
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib