本人在创建pytorch虚拟环境的时候出现了以下报错:
(base) root@rt-res-host1-57b8657bbc-kdsbx:~# conda create -n pytorch1.2 python=3.6
Collecting package metadata (current_repodata.json): failed
UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: acaconda/cloud/pytorch
channel url: https://mirrors.tuna.tsinghua.edu.cn/acaconda/cloud/pytorch
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 --remove-key channels