2024年7月29日 星期一

[ptyhon][Error][solve]cannot import name 'ChannelAuthBase' from 'conda.plugins.types'

===================python Error====================

(base) C:\Users\admin>conda list

Error while loading conda entry point: anaconda-cloud-auth (cannot import name 'ChannelAuthBase' from 'conda.plugins.types' (C:\Users\admin\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' (C:\Users\admin\anaconda3\Lib\site-packages\conda\plugins\types.py))

================================================

怎麽發生的不知道, 嘗試過以下更新的指令都無法回復


conda update conda conda update anaconda

conda install anaconda-client conda update -n base -c defaults conda

conda clean --all conda install --force-reinstall conda

來源:https://www.ahuang.xyz/archives/27/

----------------------------------------

安裝新版本

conda install conda=24.3.0

來源 https://blog.csdn.net/Mandy12310/article/details/138201080

================================================

參考 https://blog.csdn.net/2401_83601920/article/details/138917718

1.python -m pip uninstall anaconda-cloud-auth

2.conda update conda

-------------------------------console-------------------------------------------------

(base) C:\Users\admin>python -m pip uninstall anaconda-cloud-auth

Found existing installation: anaconda-cloud-auth 0.5.0

Uninstalling anaconda-cloud-auth-0.5.0:

  Would remove:

    c:\users\admin\anaconda3\lib\site-packages\anaconda_cloud_auth-0.5.0.dist-info\*

    c:\users\admin\anaconda3\lib\site-packages\anaconda_cloud_auth\*

Proceed (Y/n)? Y

  Successfully uninstalled anaconda-cloud-auth-0.5.0


(base) C:\Users\admin>conda update conda

Collecting package metadata (current_repodata.json): done

Solving environment: done


==> WARNING: A newer version of conda exists. <==

  current version: 23.7.4

  latest version: 24.7.1

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.7.1

# All requested packages already installed.

更新成功

沒有留言:

張貼留言