How to solve the CondaHTTPError HTTP 000 CONNECTION FAILED for url problem when installing Anaconda?

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:
Insert picture description here

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:
Insert picture description hereInsert picture description here

(3) The package can be reinstalled after the change, and the speed will be very fast!
Insert picture description hereInsert picture description here

Reference link: https://blog.csdn.net/ada0915/article/details/78529877

Guess you like

Origin blog.csdn.net/qq_43254543/article/details/104418886