Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I receive SSL CERTIFICATE_VERIFY_FAILED when doing poetry install

I am trying to create a virtual environment and I was able to do in the past with poetry install. But now when trying to do a poetry install, I receive this message:

Max retries exceeded with url: /pypi/six/1.16.0/json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))

  at ~/.poetry/lib/poetry/_vendor/py3.9/requests/adapters.py:514 in send
      510│                 raise ProxyError(e, request=request)
      511│ 
      512│             if isinstance(e.reason, _SSLError):
      513│                 # This branch is for urllib3 v1.22 and later.
    → 514│                 raise SSLError(e, request=request)
      515│ 
      516│             raise ConnectionError(e, request=request)
      517│ 
      518│         except ClosedPoolError as e:

like image 797
alexa Avatar asked Nov 26 '25 02:11

alexa


1 Answers

what worked for me (MacOS) go to Applications > Python folder > double click on "Install Certificates.command" file

like image 104
danibachini Avatar answered Nov 27 '25 14:11

danibachini



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!