프로그래밍/기타
[오류 해결] 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
흔한티벳여우
2022. 6. 13. 18:00
반응형
pip로 설치하다보면 아래와 같은 에러가 날 때가 있다.
필자의 경우는 회사 컴퓨터로 하다보니 ssl 오류가 난다.
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:1122)'))': /whl/torch_stable.html
해결방법은 아래와 같다.
pip --trusted-host url --trusted-host url.fileserver install pytorch
예)
pip --trusted-host pypi.org --trusted-host files.pythonhosted.org install 설치프로그램
반응형