因此,我用以下代码在Windows10上安装了NumPy、SciPy和Matplotlib。我想安装matplotlib.pylot,但我得到了一个错误消息。
我已经尝试重新安装matplotlib。有什么解决方案吗?
(work) C:\DEV>python -m pip install numpy #success
...#success
(work) C:\DEV>python -m pip install scipy #success
...#success
(work) C:\DEV>python -m pip install matplotlib
...#success
(work) C:\DEV>python -m pip install matplotlib.pyplot
Collecting matplotlib.pyplot
ERROR: Could not find a version that satisfies the requirement matplotlib.pyplot (from versions: none)
ERROR: No matching distribution found for matplotlib.pyplot
发布于 2019-10-10 20:10:00
有一次,当我遇到这种错误时,问题出在Python版本上。Python不是向后兼容的,就像Java一样,你不能只安装最新的版本就希望得到最好的结果。请始终确保您尝试下载的软件可用于您使用的Python。如果不是,那就降级Python。
发布于 2019-10-10 20:01:39
看一看Wheels
git clone https://github.com/matplotlib/matplotlib
git clone https://github.com/jbmohler/matplotlib-winbuild
python matplotlib-winbuild\buildall.py
https://stackoverflow.com/questions/58321849
复制相似问题