conda失败 UnavailableInvalidChannel: The channel is not accessible or is invalid error code: 404

在ubuntu使用 conda install 失败,报错如下:

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

You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.
 

原因是 清华源停止了anaconda的镜像,搜了一下 国内的源都不行了

现在唯一的办法就是科学上网吧,,

首先要把清华源删掉,换回默认源

conda config --remove-key channels

一句话就可以了。

在ubuntu上在终端中使用 命令行 代理上网需要安装proxychains,当然前提是有网络代理。

下一篇博客会将如何下载设置proxychains来使用命令行翻。

发布了61 篇原创文章 · 获赞 15 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/surserrr/article/details/90483651