본문 바로가기
IT

파이썬 pip 인스톨시에 ssl 오류로 인스톨 안될 때

by 티티알 2021. 3. 26.

오류내용 : CERTIFICATE_VERIFY_FAILED error 블라블라블라....

 

파이썬 관련 여러 패키지 설치시에 아래처럼 SSL 인가가 안되는 경우가 발생한다

> pip install tensorflow==2.4.1


Defaulting to user installation because normal site-packages is not writeable
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: unable to get local issuer certificate (_ssl.c:1123)'))': /simple/tensorflow/

 

 

이럴 때 pip 명령행에 다음과 같은 옵션을 사용하면 정상적으로 설치 진행 가능하다

 

> pip install tensorflow==2.4.1 --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org