SSLCertVerificationError报错

双击执行Applications > Python3.6 下的Install Certificates.command

Posted by yaohong on Wednesday, October 28, 2020

TOC

SSLCertVerificationError报错

Error:

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)

Solution: 环境:Mac

Macintosh HD > Applications > Python3.6 (或者其它安装python目录)
然后:双击 Install Certificates.command

Double click Install Certificates.command log:

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
/Applications/Python\ 3.7/Install\ Certificates.command ; exit;
macdeMacBook-Air-5:~ Rhys$ /Applications/Python\ 3.7/Install\ Certificates.command ; exit;
 -- pip install --upgrade certifi
Requirement already up-to-date: certifi in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (2020.6.20)
WARNING: You are using pip version 20.1.1; however, version 20.2.4 is available.
You should consider upgrading via the '/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -m pip install --upgrade pip' command.
 -- removing any existing file or link
 -- creating symlink to certifi certificate bundle
 -- setting permissions
 -- update complete
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...68 completed.

[Process completed]

Double click Update Shell Profile.command log:

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
macdeMacBook-Air-5:~ Rhys$ /Applications/Python\ 3.7/Update\ Shell\ Profile.command ; exit;
This script will update your shell profile when the 'bin' directory
of python is not early enough of the PATH of your shell.
These changes will be effective only in shell windows that you open
after running this script.
All right, you're a python lover already
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

REFERENCE: ssl-certificate-verify-fail

「点个赞」

Yaohong

点个赞

使用微信扫描二维码完成支付