requests.exceptions.SSLError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-base-uncased/resolve/main/tokenizer_config.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))
가상 환경내에
vi /opt/conda/envs/sd/lib/python3.10/site-packages/huggingface_hub/utils/_http.py
의 128번째줄 에 verify 를 false 로 바꿔준다.
검색하면 request.get 은 많이 나오는데,
request.request 는 없어서 쓴다.
참고페이지
https://jcutrer.com/python/requests-ignore-invalid-ssl-certificates
'딥러닝 > 환경구축' 카테고리의 다른 글
[python] print self.face_rec_model_path 에러 (0) | 2023.12.11 |
---|---|
[에러해결] error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received TLS packet. (0) | 2023.09.11 |
딥러닝 유용 사이트 모음 (0) | 2022.06.23 |
FOCS 설치 에러모음 (0) | 2022.06.23 |