LoginSignup
1
0

More than 5 years have passed since last update.

pip install cryptographyができない時の対処法

Posted at

環境

  • macOS Sierra 10.12.6
  • Homebrew
    • OpenSSL 1.0.2l1.1.0fがインストール済み
  • fish

対処法

以下を実行すればいい

env LDFLAGS="-L /usr/local/opt/openssl/lib" CFLAGS="-I /usr/local/opt/openssl/include" pip install cryptography

というのもここに書いてあったスクリプトが以下なのですが,

$ brew install openssl@1.1
$ env LDFLAGS="-L$(brew --prefix openssl@1.1)/lib" CFLAGS="-I$(brew --prefix openssl@1.1)/include" pip install cryptography

これを実行するとopenssl1.1.0fがインストールされてしまい動作しなかった.OpenSSL 1.0.2lでもいけるらしいのでそのパスを調べて書き換えたらうまく言った.

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