Notice
Recent Posts
Recent Comments
04-24 10:10
관리 메뉴

Black&White

python install pip 실행 시 'CERTIFICATE_VERIFY_FAILED' 오류 해결 본문

카테고리 없음

python install pip 실행 시 'CERTIFICATE_VERIFY_FAILED' 오류 해결

V.E.N 2020. 4. 28. 17:36

출처 : https://m.blog.naver.com/PostView.nhn?blogId=ambidext&logNo=221423553624&proxyReferer=https:%2F%2Fwww.google.com%2F

 

[Python] CERTIFICATE_VERIFY_FAILED error 해결 방법

python -m pip install --upgrade pip 실행 시 다음과 같은 에러 발생.​Retrying (Retry(total=4,...

blog.naver.com

파이썬 설치 후, pip 업그레이드를 위해 아래 명령 실행 후 SSL 에러 발생

 

command : python -m pip install -U pip

 

Result :

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)'))': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)'))': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)'))': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)'))': /simple/pip/

 

Solv>

아래 명령 추가로 해결완료

 

python -m pip install --upgrade pip --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org

 

 

Comments