LoginSignup
0
0

More than 3 years have passed since last update.

Certificates.command for python on macOS

Last updated at Posted at 2019-07-08

機材の環境

Mac OS 10.12.6
brewをbrew_managerというIDで導入。
Administratorという管理者IDで実行中

StackOverflow

How to make Python use CA certificates from Mac OS TrustStore?
https://stackoverflow.com/questions/40684543/how-to-make-python-use-ca-certificates-from-mac-os-truststore

urllib and “SSL: CERTIFICATE_VERIFY_FAILED” Error
https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error

Anaconda

を入れてある。

macOS
$ /Applications/Python\ 3.6/Install\ Certificates.command

ではうまく入らない。pipで入るらしい。

macOS
$ sudo pip install certifi
Password:
WARNING: The directory '/Users/administrator/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/Users/administrator/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: certifi in /Users/administrator/.pyenv/versions/anaconda3-4.3.0/lib/python3.6/site-packages (2019.6.16)

もう入って要るらしい。

0
0
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
0
0