CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/osx-64

1488 단어 문제.
문제.
명령 conda search python 을 사용 하 는 중 오류 가 발생 했 습 니 다.CondaHTTPError:HTTP 000 CONNECTION FAILED for urlhttps://repo.anaconda.com/pkgs/main/osx-64/repodata.json
% conda search python
Loading channels: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url 
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/osx-64'


원인.
입력 명령:conda info,기 존 channels 보기
 - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch

외국 의 인터넷 이 연결 되 기 어렵 기 때문에 국내 인터넷,예 를 들 어 칭 화대 원 등 으로 수정 할 수 있다.
해결 하 다.
.condarc 파일 열기:open.condarc,다음 내용 보기:
show_channel_urls: true
ssl_verify: false

다음으로 변경:
channels:
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
show_channel_urls: true
ssl_verify: false

좋은 웹페이지 즐겨찾기