当前位置:   article > 正文

创建anaconda虚拟环境的时候报错UnavailableInvalidChannel: The channel is not accessible or is invalid._安装pytorch时unavailableinvalidchannel: the channel i

安装pytorch时unavailableinvalidchannel: the channel is not accessible or is

本人在创建pytorch虚拟环境的时候出现了以下报错:

  1. (base) root@rt-res-host1-57b8657bbc-kdsbx:~# conda create -n pytorch1.2 python=3.6
  2. Collecting package metadata (current_repodata.json): failed
  3. UnavailableInvalidChannel: The channel is not accessible or is invalid.
  4. channel name: acaconda/cloud/pytorch
  5. channel url: https://mirrors.tuna.tsinghua.edu.cn/acaconda/cloud/pytorch
  6. error code: 404
  7. You will need to adjust your conda configuration to proceed.
  8. Use `conda config --show channels` to view your configuration's current state,
  9. and use `conda config --show-sources` to view config file locations.

怀疑是镜像的问题,查了一下果不其然,

使用下面的命令可以查看当前的,你已经输入的镜像源的网址

conda config --show channels

最终我使用下面的这句命令,恢复默认的镜像源即可解决:

conda config --remove-key channels

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

闽ICP备14008679号