1.conda源更换为清华
只需输入如下两行命令:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
2.conda源更换为中科大
只需输入如下两行命令:
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
记得删掉c:/usr/usrname里的.condarc原有的清华镜像
3.如果需要换回conda的默认源。查看了conda config的文档后,发现直接删除channels即可。命令如下:
conda config --remove-key channels