pythonmacosselenium-chromedriverundetected-chromedriver

Python selenium chrome driver SSL: CERTIFICATE_VERIFY_FAILED unable to get local issuer certificate


When trying to run undetected-chromedriver I was running into the following error:

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

Solution

  • If you're using macOS go to Macintosh HD > Applications > Python3.9 folder (or whatever version of python you're using) > double click on "Install Certificates.command" file.