Cyber Coding Course

師其意,不泥其跡

Macos執行Python出現certificate verify處理

執行時出錯了
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 853, in _create
    self.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1117, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)

During handling of the above exception, another exception occurred:
一、目前我使用的是Python 3.7,所以進入目錄中
cd /Applications/Python\ 3.7/
二、執行
./Install\ Certificates.comman

實際操作畫面,執行再跑程式,就正常囉..:p

作者: Devin Yang