[Python] pip install 중 CERTIFICATE_VERIFY_FAILED error

Woong·2022년 11월 18일
0

Python / Machine Learning

목록 보기
3/20

인트라넷 등 사용시 인증 관련하여 발생하는 문제.

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:997)'))': /simple/pymongo/

해결방법

    1. 설치시 --trusted-host 명시
    • pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org
  1. pip.conf 파일에 아래 내용 추가
  • Windows 의 경우 pip.ini 파일
[global]
trusted-Host = pypi.python.org
               pypi.org
               files.pythonhosted.org

reference

0개의 댓글