总结
是因为根据warning更新了conda而出现错误,解决需要将conda回溯到原来的版本,如下所示
conda install conda=24.3.0
问题
在使用conda install的时候,无论下载什么都会报错
Error while loading conda entry point: anaconda-cloud-auth (cannot import name 'ChannelAuthBase' from 'conda.plugins.types' )
Error while loading conda entry point: anaconda-cloud-auth (cannot import name 'ChannelAuthBase' from 'conda.plugins.types' )
在报错其他正常报错的信息,如
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
调查了一下,应该是因为接收到warning之后,使用提示的指令更新了conda,warning如下所示:
==> 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
解决
使用如下指令将conda版本回溯,即可工作正常。
conda install conda=24.3.0
其他问题
回溯之后有一定的概率丢失channel,最好提前备份一份。