How to Resolve SSL: CERTIFICATE_VERIFY_FAILED Error on Mac
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!