새로운 환경에서 Anaconda를 설치하면 SSLError가 발생하여 해결되었습니다 (Windows10, Anaconda3-2019.10)

1. Anaconda3-2019.10-Windows-x86_64.exe에서 Anaconda 설치

2. Anaconda Prompt를 열고 가상 환경을 구축할 때 다음 오류가 발생합니다.
(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."))'))

3. OpenSSL은 여기



4. C:\OpenSSL-Win64에 배포되었으므로 C:\OpenSSL-Win64\bin의 모든 내용을 Anaconda3\Library\bin에 복사



5. Anaconda Prompt에서 OpenSSL을 사용할 수 있는지 확인
(base) C:\Users\xxx>openssl
OpenSSL> exit

6. 시스템 환경 변수 확인


7. Anaconda Prompt를 열고 가상 환경을 만들 수 있습니다.
(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:

8. SSL 오류는 사라지지만 대학 내에서 좋지 않을 때도 있으므로 테더링
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)'))"))

좋은 웹페이지 즐겨찾기