当前位置:   article > 正文

conda创建环境出错(conda create --name myenv -c conda-forge python cython cartopy)_you will need to adjust your conda configuration t

you will need to adjust your conda configuration to proceed. use `conda conf
  1. Collecting package metadata (current_repodata.json): failed
  2. UnavailableInvalidChannel: The channel is not accessible or is invalid.
  3. channel name: https//mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  4. channel url: https://conda.anaconda.org/https//mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  5. error code: 404
  6. You will need to adjust your conda configuration to proceed.
  7. Use `conda config --show channels` to view your configuration's current state,
  8. and use `conda config --show-sources` to view config file locations.

解决方法:

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

conda config --show channels

输出为:

  1. channels:
  2. - https//mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  3. - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  4. - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  5. - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  6. - defaults

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/天景科技苑/article/detail/939879
推荐阅读
相关标签
  

闽ICP备14008679号