Collecting package metadata (current_repodata.json): failed

UnavailableInvalidChannel: The channel is not accessible or is invalid.
  channel name: https//mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  channel url: https://conda.anaconda.org/https//mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  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.

解决方法:

首先用conda config --show channels命令看一下都有什么镜像,

conda config --show channels

输出为:

channels:
  - https//mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - defaults

然后使用conda config --remove-key channels命令恢复默认配置,这时就只剩下

最后在进行conda create配置环境就可以啦,如果想要新的镜像,自己再添加想要的镜像就可以了

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐