LoginSignup
6
3

More than 5 years have passed since last update.

macOSのPython環境にてCERTIFICATE_VERIFY_FAILEDが発生した場合の対処メモ

Posted at

新しく調達したMacにてAdwords APIを実行しようとしたところ、以下のようなエラーが返ってきました。実行環境はPython3.7。
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

しばらく闘った結果、stack overflowの以下の投稿内容で解決できました。
https://stackoverflow.com/questions/42098126/mac-osx-python-ssl-sslerror-ssl-certificate-verify-failed-certificate-verify/42098127#42098127

どうやらmacOS用のPython.org公式インストーラでのみ発生する、ルート証明書の参照にまつわるエラーだったようです。
https://qiita.com/orangain/items/0a641d980019fd7e0c52

被害者が増えないようにメモ。

6
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
3