matplotlib下载安装¥¥最后有彩蛋,先看彩蛋

本文介绍了如何在Windows上安装Python的Matplotlib库,包括下载安装包、解决安装错误以及提供快速全面安装的命令。同时,提到了Matplotlib的依赖项和可选的用户界面工具包,如Tk、PyQt、wxPython等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最后有彩蛋,先看彩蛋

1、下载安装

下载地址
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

2、报错及解决办法

报错:ERROR: matplotlib-3.3.4-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
解决办法

3、安装指南

安装指南
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.

4、惊喜发现

后来才发现的,运行下面的命令,安装得更快更全

pip install numpy scipy matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple

或者

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

我是小飞熊

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值