When opening Anaconda Prompt and building a virtual environment, the following error occurs
(base) C:\Users\xxx> conda create -n py36 python=3.6 anaconda
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_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.
If your current network has https://anaconda.com blocked, please file
a support request with your network engineering team.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'http://repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
Four. Since it was expanded to C: \ OpenSSL-Win64, copy all the contents of C: \ OpenSSL-Win64 \ bin to Anaconda3 \ Library \ bin.
Five. Confirm that OpenSSL can be used from Anaconda Prompt
(base) C:\Users\xxx>openssl
OpenSSL> exit
Check system environment variables
(base) C:\Users\xxx>conda create -n py36 python=3.6 anaconda
Collecting package metadata (current_repodata.json): done
Solving environment: done
Package Plan ##
environment location: C:\Users\xxx\Anaconda3\envs\py36
added / updated specs:
- anaconda
- python=3.6
The following NEW packages will be INSTALLED:
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_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.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.
ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x0000027D8404FB48>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)'))"))
Recommended Posts