Python
pip사용시 SSL에러관련

에러내용)
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /simple/python-docx/
Could not fetch URL https://pypi.org/simple/python-docx/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/python-docx/ (Caused
by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))) - skipping
ERROR: Could not find a version that satisfies the requirement python-docx (from versions: none)
ERROR: No matching distribution found for python-docx

해결방안)
--trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org
를 명령어 끝에 붙여서 수행하면 진행됨

예) pip install python-docx --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org

'프로그래밍' 카테고리의 다른 글

python기초  (0) 2020.09.09

+ Recent posts