본문 바로가기
python

pip install error - after connection broken by 'ProxyError

by 맑은안개 2021. 1. 20.

pip install 오류

C:\Users\user>pip install scipy

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1105: The handshake operation timed out'))': /simple/scipy/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1105: The handshake operation timed out'))': /simple/scipy/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1105: The handshake operation timed out'))': /simple/scipy/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1105: The handshake operation timed out'))': /simple/scipy/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1105: The handshake operation timed out'))': /simple/scipy/
ERROR: Could not find a version that satisfies the requirement scipy
ERROR: No matching distribution found for scipy

해결방안

  • Proxy를 외부프로그램에서 사용하지 않는지 확인 - 프록시 프로그램

  • 인터넷익스플로러 프록시 사용여부 확인 - 설정되어있는경우 해제 한다.

익스플로러에서 설정된 프록시 셋팅 제거

  • Proxy를 사용해야 하는 경우 아래 링크를 참조하여 해결한다.

stackoverflow.com/questions/35003079/pip-proxy-error

 

Pip Proxy Error

Im trying to install some pip packages behind a proxy. Ive set the env to, http_proxy=http://172.16.2.3:3128 https_proxy=http://172.16.2.3:3128 I then tried pip but get the error, [root@server ~...

stackoverflow.com

필자의 경우 PC에서 인터넷 익스플로러 프록시 설정을 계속 켜서 끄고 pip install 하니 해결되었다. 

 

반응형