The outline of the environment that caused the error is described. --macbookAir (It is important to be a mac for the time being) --I put python3.7 in Homebrew (this is the most important)
In my case, I got stuck when importing a dataset with sklearn. With the solution that comes up when I search on the net.
python3 executable code
>>>import certifi
>>>certifi.where()
'/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certifi/cacert.pem'
And come out. You can use this as the key (?) For SSL authentication.
Execution code on terminal
$ touch /Library/Frameworks/Python.framework/Versions/3.7/etc/openssl/cert.pem #Without the file
$ ln -s /Library/Frameworks/Python.framework/Versions/3.7/etc/openssl/cert.pem /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certifi/cacert.pem
$ ls -l /Library/Frameworks/Python.framework/Versions/3.7/etc/openssl
lrwxr-xr-x 1 username admin 96 11 22 10:04 cert.pem -> /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/certifi/cacert.pem
And. This should probably solve it.
[youtube-dl] python3 SSL error (CERTIFICATE_VERIFY_FAILED) Problem with CERTIFICATE_VERIFY_FAILED in Python 3.6 of the official installer for macOS