anaconda for domestic sources

Various packages in anaconda (such as pytorch, tensorflow, etc.) download slowly:

This method does not need to add a download source every time you enter a download instruction, but can directly change the domestic download source to the default, once and for all.

1 Add Tsinghua source
directly use the following command in the command line (ubuntu command line is also possible)

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
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/cloud/msys2/

Display channel address when setting search (the same below)

 conda config --set show_channel_urls yes

2 Add the University of Science and Technology of China

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
conda config --set show_channel_urls yes

ok solved!

Guess you like

Origin blog.csdn.net/qq_35544714/article/details/109270768