项目场景:

python入门|conda环境配置

问题描述

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

(base) C:\Users\purink>conda config --show channels

channels:

- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkg

- defaults

(base) C:\Users\purink>conda search python

Loading channels: failed

UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel anaconda/pkg

The channel is not accessible or is invalid.

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.

原因分析:

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

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

解决方案:

1.先移除错误的 channel;

conda config --remove channels

2.再添加正确的 channel。

conda config --add channels

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

查看当前 channels 的配置状态:  

conda config --show channels

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

文章链接

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: