anaconda换源和恢复默认源

时间:2025-04-06 07:11:00

恢复默认源:
conda config --remove-key channels


换源:
(清华源)
conda config --add channels /anaconda/pkgs/free/
conda config --add channels /anaconda/cloud/conda-forge
conda config --add channels /anaconda/cloud/msys2/

conda config --set show_channel_urls yes

(中科大源)
conda config --add channels /anaconda/pkgs/main/
conda config --add channels /anaconda/pkgs/free/
conda config --add channels /anaconda/cloud/conda-forge/
conda config --add channels /anaconda/cloud/msys2/
conda config --add channels /anaconda/cloud/bioconda/
conda config --add channels /anaconda/cloud/menpo/

conda config --set show_channel_urls yes