```conda update -n base -c defaults conda```

问题描述 投票:0回答:1

执行任何 conda 命令后都会出现错误:

Error while loading conda entry point: anaconda-cloud-auth (cannot import name 'ChannelAuthBase' from 'conda.plugins.types' ({condaPath}\anaconda3\Lib\site-packages\conda\plugins\types.py))

并且

Error while loading conda entry point: anaconda-cloud-auth (cannot import name 'ChannelAuthBase' from 'conda.plugins.types' (---\anaconda3\Lib\site-packages\conda\plugins\types.py))
Error while loading conda entry point: anaconda-cloud-auth (cannot import name 'ChannelAuthBase' from 'conda.plugins.types' (---\anaconda3\Lib\site-packages\conda\plugins\types.py))
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.

CONDA 未更新运行

conda --version
给出:

Error while loading conda entry point: anaconda-cloud-auth (cannot import name 'ChannelAuthBase' from 'conda.plugins.types' (----\anaconda3\Lib\site-packages\conda\plugins\types.py))
Error while loading conda entry point: anaconda-cloud-auth (cannot import name 'ChannelAuthBase' from 'conda.plugins.types' (----\anaconda3\Lib\site-packages\conda\plugins\types.py))
conda 23.7.4

运行命令后发生此错误

conda update -n base -c defaults conda

运行它是因为我收到警告:

==> WARNING: A newer version of conda exists. <==
  current version: 23.7.4
  latest version: 24.3.0

Please update conda by running

    $ conda update -n base -c defaults conda

Or to minimize the number of packages updated during conda update use

     conda install conda=24.3.0

在 Windows 11、conda V 23.7.4 上运行

python anaconda conda
1个回答
0
投票

你可以尝试使用

conda install conda=24.3.0 

直接解决问题。我用这个方法解决了这个问题。 谢谢你的提问,给了我解决问题的思路。

© www.soinside.com 2019 - 2024. All rights reserved.