Conda:如何取消绑定“anaconda”包指定的包?

2024-10-02 08:24:19 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图更新我最新安装的Anaconda中的一些常用软件包(发布日期2020-07-31,Ubuntu 20.04.1),但我看到错误消息,抱怨它们被anaconda软件包固定

我怎样才能解除这些锁定并更新像matplotlibpython这样的包

规格

Python版本:3.8.3

康达版本:4.8.4

输出

见下文。我可以看到python 3.8.5包在pkg/main通道中可用。但当我试图更新它时,我看到了下面的内容

当我试图获取matplotlib 3.3.1时也发生了同样的情况

{}包是问题所在吗?我以前的Anaconda安装没有这个问题,它在不久前使用python 3.7

conda search python

#output

python                         3.8.5 h4d41432_2_cpython  conda-forge         
python                         3.8.5 h6f2ec95_1_cpython  conda-forge         
python                         3.8.5 h6f2ec95_2_cpython  conda-forge         
python                         3.8.5      hcff3b4d_0  pkgs/main   
....

conda update python

# output

Collecting package metadata (current_repodata.json): done
Solving environment: | 

Updating python is constricted by 

anaconda -> requires python==3.8.3=hcff3b4d_2

If you are sure you want an update of your package either try `conda update --all` or install a specific version of the package you want using `conda install <pkg>=<version>`

done

# All requested packages already installed.

这是我的.condarc

channels:
  - defaults
  - pytorch
  - conda-forge

谢谢你的帮助


Tags: 版本youpackageoutputmatplotlibmainupdatepkg

热门问题