我想使用仅在3.4.1版本中提供的包。当我执行conda list
时,我看到我的matplotlib版本是3.2.2。
我尝试过conda.install matplotlib=3.4.1
,但它在这些通道上返回一个PackagesNotFound Error
:
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
我试着用conda install --channel "conda-forge" matplotlib
来解决这个问题,但是没有成功。它说所有的包都已经安装好了。我不明白为什么这不起作用,因为网页https://anaconda.org/conda-forge/matplotlib表明包是v3.4.1
编辑:我试过conda update matplotlib
,它把我的更新到了3.3.4,而不是3.4.1……看完这篇文档后:https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-pkgs.html#,我尝试使用pip install matplotlib
,但它只指定了一堆Requirement already specified: (...)
语句,没有升级到安装
感谢您的帮助。
发布于 2021-06-29 17:43:51
我尝试使用DavidD003解决方案https://stackoverflow.com/a/66932922/11753330,它也适用于conda命令:conda install -c conda-forge matplotlib==3.4.2
这样,更新就成功了。之前:
matplotlib 3.3.4 py38hecd8cb5_0
matplotlib-base 3.3.4 py38h8b3ea08_0
之后:
matplotlib 3.4.2 py38h50d1736_0 conda-forge
matplotlib-base 3.4.2 py38h6152e83_0 conda-forge
https://stackoverflow.com/questions/66932479
复制相似问题