[ssl: certificate_verify_failed]

Hi

I am using huggingface-cli login to login from console. But I got the following error after I enter the token generated from my huggingface account.

requests.exceptions.SSLError: (MaxRetryError(“HTTPSConnectionPool(host=‘huggingface.co’, port=443): Max retries exceeded with url: /api/whoami-v2 (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)’)))”), ‘(Request ID: cc058227-71c0-4574-aadc-c0bc68845fb3)’)

How to I fix this?

Thanks!

2 Likes