When installing Anaconda, there will be problems that cannot create a virtual environment and cannot successfully install other third-party packages, and finally report the following error:
When the above error occurs, the access speed of the default mirror source is too slow, which leads to a timeout, which causes the update and download to fail. To solve this problem, adopt: replace the mirror source to the Tsinghua mirror source, and delete the default mirror source.
(1) Execute the following commands to replace the Tsinghua mirror source:
conda 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
(2) Change the configuration file of the mirror source:
Find the .condarc file in the user root directory (C:\Users\user name), open and edit it, and delete the default configuration line:
(3) The package can be reinstalled after the change, and the speed will be very fast!
Reference link: https://blog.csdn.net/ada0915/article/details/78529877