2017-09-28 1 views
3

아래의 pip install 명령을 사용하려고하는데 프록시 인증에 실패했습니다. 이미 내 RHEL7.x 서버에서 프록시를 구성했습니다.pip 설치가 실패 함 407 프록시 인증이 필요합니다.

Command Used: `pip install --proxy https://'username:pwd'@proxy:host --upgrade pip` 

로그 :

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/ 
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/ 
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/ 
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/ 
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/ 

답변

1

오류 407는 프록시에 대한 인증이 /가 잘못 없음을 의미한다. username:pwd 부분에서 '을 제거합니다 (예 : pip install --proxy https://username:[email protected]:host).

다른 옵션으로 Python 패키지를 설치하기 바로 전에 해당 서버에서 인터넷 연결을여십시오.

도움이되지 않는 경우 here, herehere의 질문에 대한 답변에서 시도해보십시오.

열기 명령 프롬프트 (CMD) :

+1

을이 링크는 질문에 대답 수 있지만, 그것은 더 여기에 답변의 핵심 부분을 포함하고 참조 용 링크를 제공하십시오. 링크 된 페이지가 변경되면 링크 전용 답변이 유효하지 않게 될 수 있습니다. - [리뷰에서] (리뷰/저품절 포스트/17884246) – Peter

+0

네가 맞아, 필자는 내 대답에 적응하여 단순한 링크 이상의 의미를 갖게되었다. – bastelflp

0

이것은 당신이 시도해야 할 첫 번째 일은이다.

수출 프록시 설정 :

:\set http_proxy=http://username:[email protected]:port

:\set https_proxy=https://username:[email protected]:port

설치하려는 패키지 설치 :

:\pip install PackageName

관련 문제