当前位置:   article > 正文

使用Ananconda prompt创建环境时出现:UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel xxxx_conda创建python虚拟环境404

conda创建python虚拟环境404

项目场景:

python入门|conda环境配置


问题描述

使用Ananconda prompt创建环境,搜索conda search python时出现:UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel xxxxx

  1. (base) C:\Users\purink>conda config --show channels
  2. channels:
  3. - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkg
  4. - defaults
  5. (base) C:\Users\purink>conda search python
  6. Loading channels: failed
  7. UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel anaconda/pkg <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkg>
  8. The channel is not accessible or is invalid.
  9. You will need to adjust your conda configuration to proceed.
  10. Use `conda config --show channels` to view your configuration's current state,and use `conda config --show-sources` to view config file locations.

原因分析:

提示:网址复制时少了一节

从PDF中复制网址到cmd命令窗口时,容易丢失。


解决方案:

1.先移除错误的 channel;

conda config --remove channels <channel_name>

2.再添加正确的 channel。

conda config --add channels <channel_name>

有先后顺序,否则依然报错。

查看当前 channels 的配置状态:
 

conda config --show channels

参考:【小新eQ使用Ananconda prompt创建环境时出现:UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel simple

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号