티스토리 뷰

Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/linux-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.

ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.anaconda.com',): Max retries exceeded with url (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object>: Failed to establish a new connection: [Errno -2] Name or service not known'))"))

 

$ conda create --name 가상환경이름 python=3.x

평소처럼 위 명령어로 새로운 가상환경을 생성하려고 했더니 갑자기 CondaHTTPError, ConncectionError가 발생했다.

 

SSL 인증 관련한 문제라고 하는데, 아래 명령어를 입력해주면 된다.

$ conda config --set ssl_verify no
$ conda config --set ssl_verify False

(위 명령어가 Linux버전이고 아래 명령어가 Windows 버전인듯한데, 나의 경우 Linux 환경에서 위 명령어를 치니 해결이 안되었고 아래 명령어를 치니 해결이 되었다.)

 

 

참고 링크

반응형

댓글