ERROR: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

I am attempting to run the alpacahq/example-scalping script in Python 3.8 but I continue to get the [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed error each time I run.

I am on a Mac with 10.14.6 running Python 3.8, I have already tried the Install Certificates command in the application folder as well as installing certifi, neither of which have worked.

any ideas?

Hi there! I don’t know if this is still an issue for you, but I fixed this by navigating to
/Applications/Python 3.8/Install Certificates.command
and clicking the file.

Can you please suggest the exact step you used?

These errors are typical when the version of python on you OSX has no certificates and cannot validate SSL connections.

There are a number of solutions on stack overflow. You can check for a solution that applies best to your case here.