본문 바로가기
파이썬

파이썬 Anaconda가 HTTP 프록시 (https가 아님) 뒤에서 작동하도록하는 방법은 무엇입니까?

by º기록 2020. 11. 4.
반응형

직장에서 프록시 뒤에서 Anaconda로 작업하는 데 문제가 있습니다.

다음 환경 변수가있는 경우 :

http_proxy: http://domain\username:password@corp.com:8080
https_proxy: https://domain\username:password@corp.com:8080

아니면 그냥

http_proxy: http://server\username:password@corp.com:8080

설정하면 git이 작동합니다. 그러나 Anaconda는 작동하지 않습니다. 나는 달리려고 노력하고있다

conda update conda

그리고 나는 얻는다 :

Could not connect to https://repo.continuum.io/pkgs....
Could not connect to https://repo.continuum.io/pkgs....

Anaconda는 http에서 작동하지 않습니까? https 프록시가 필요합니까? 회사에 https 프록시 서버 설정이 없을 수도 있다고 생각하기 때문입니다 (http 만 사용하는 것을 보았습니다). 또는 때때로 오류가 발생합니다.

File "c\Anaconda2\", line 340, in wait
    waiter.acquire()
KeyboardInterrupt
Could not connect to https://repo.continuum.io/pkgs....
Could not connect to https://repo.continuum.io/pkgs....

Windows 7을 사용하고 있습니다.

 

해결 방법

 

Windows 사용자 영역에서 .condarc 파일을 만들어야합니다.

C:\Users\<username>

파일에는 다음이 포함되어야합니다.

channels:
- defaults

# Show channel URLs when displaying what is going to be downloaded and
# in 'conda list'. The default is False.
show_channel_urls: True
allow_other_channels: True

proxy_servers:
    http: http://proxy.yourorg.org:port
    https: http://proxy.yourorg.org:port


ssl_verify: False

 

참조 페이지 https://stackoverflow.com/questions/36729023

 

 

반응형

댓글