How to Resolve SSL: CERTIFICATE_VERIFY_FAILED Error on Mac

Emily Ekdahl
Nov 15, 2020

--

Really excited to get a new demo or project up and running? Great! πŸŽ‰

Cloned/started the repo? Awesome! πŸ€“

Got this error? Oh no! 😞

URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

Try this command, but make sure you put whatever version of Python you’re using in place of 3.8:

open /Applications/Python\ 3.8/Install\ Certificates.command

Several of the solutions I saw recommended this command, however, when I ran the first one, it kicked off this second one for me:

pip install --upgrade certifi

Happy hacking!

--

--