1. When Anaconda Prompt installs the required packages, this error occurs:
We will find that we have also used Tsinghua's image, but it still fails and fails repeatedly. what to do?
conda install absl-py
Solving environment: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch/repodata.json>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'mirrors.tuna.tsinghua.edu.cn\', port=443): Max retries exceeded with url: /anaconda/pkgs/free/noarch/repodata.json (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')],)",),))',),)
2. To the problem of repeated failures above, come to an ultimate solution and give the method directly:
2.1 First, we search for our own .condarc file on the C drive, as shown in the figure:
2.2 Open this file and modify it to the following content:
ssl_verify: true
show_channel_urls: true
channels:
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/
As shown in the figure:
Finally, go back to Anaconda Prompt to download, and you will find that the download is very fast! !
OK!