2021-05-24

UnavailableInvalidChannel: The channel is not accessible or is invalid.

solving environment:done 后一直卡着,过了很久然后报错:

UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: anaconda/pkgs/free
channel url: https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
error code: 404

各种尝试都不行:
尝试1(失败):

  1. conda clean --all #清理无用的包或安装包,清除了2G多的安装包;
  2. conda update --all,报错了,尝试1失败。

尝试2(成功):

  1. conda config --remove-key channels #恢复默认配置
  2. 配置代理,科学上网。

P.S
conda config --show-sources #查看.condarc文件里的镜像配置信息。
conda config --remove-key channels #恢复默认配置

参考博客
https://blog.csdn.net/weixin_39712314/article/details/90692917?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-1.control

你可能感兴趣的:(Python安装遇到的坑,python,anaconda)