- 添加清华源(TUNA)
1
2
3
4
5conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
conda - -help //找到配置文件.condarc的路径 ,将上述显示的配置信息中-defaults所在行删除保存即可 - 添加中科大源(USTC)
1
2
3conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes - 添加本地源
1
2
3conda config --add channels file:///home/killf/conda_offline/
# conda install conda-build
# conda index /home/killf/conda_offline/ - 查看源:
conda config --show channels
- 换回默认源:
conda config --remove-key channels