Anaconda创建虚拟环境报错 UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel simple <https://pypi.tuna.tsinghua.edu.cn/simple>

1.报错日志

(base) C:\Users\Admin>conda create -n faceswap python=3.7
Collecting package metadata (current_repodata.json): failed

UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel simple <https://pypi.tuna.tsinghua.edu.cn/simple>

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.

2.恢复conda配置,配置可用镜像地址

conda config --remove-key channels
conda config --add channels https://repo.continuum.io/pkgs/free/ 
conda config --add channels https://repo.continuum.io/pkgs/main/ 
conda config --set show_channel_urls yes

3.查看配置信息

conda config --show channels

查询出以下结果说明配置完毕!

channels:
  - https://repo.continuum.io/pkgs/main/
  - https://repo.continuum.io/pkgs/free/
  - defaults
posted @ 2023-02-28 20:12  LittleDuo  阅读(7627)  评论(0)    收藏  举报