报错如下:
UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: anaconda/pkgs/free
channel url: https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
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 --remove-key channels
如果恢复默认源报错如下:
CondaKeyError: 'channels': key 'channels' is not in the config file
说明应该是已经恢复到默认源
执行创建环境依然报错时,查看.yml文件中的channels
注释掉.yml文件中的镜像源