%%
date:: [[2023-05-11]]
parent:: [[Python]]
%%
# [[Python error - CERTIFICATE_VERIFY_FAILED]]
## The error
```
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)>
```
## The solution
Go to your installation directory of Python (such as `Applications/Python 3.9/`) and run a file called `Install Certificates.command`. [^stackoverflow]
Then run whatever you were trying to run again!
[^stackoverflow]: @biswajit. (2019) *python - certificate verify failed: unable to get local issuer certificate - Stack Overflow*. Retrieved from https://stackoverflow.com/questions/52805115/certificate-verify-failed-unable-to-get-local-issuer-certificate