새로 들인 GPU서버에 계정 하나를 생성하여 가상 환경을 만들어주려고 하니 아래 그림과 같이 CondaHTTPError가 발생하였다.
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.
'https://repo.anaconda.com/pkgs/main/linux-64'
위의 문제는 설정된 DNS가 정상적으로 동작하지 않아 도메인을 찾을 수 없어서 발생한 것으로 여겨진다.
조치 방식은
# vi /etc/resolv.conf 에서
nameserver 8.8.8.8
또는
nameserver 기관에서 제공하는 dns ip 주소
를 입력하면 된다.
나의 경우에는 nameserver 8.8.8.8 로 해결하였다.
가상환경 만들어주기 전에 conda version을 확인했더니
# conda --version
conda 4.10.1 이길래
# conda update --all
로 실행하여 conda 4.10.3 으로 업데이트를 해주었다.
내 개인 계정으로 로그인해서 가상환경을 만들어주었다.
$ conda create --name 가상환경명 python=3.8
이렇게 하면 어제밤 가상 환경 만들 때 발생했던 문제는 해결된다.