LoginSignup
0
1

More than 1 year has passed since last update.

pip install cryptographyでエラー(Docker alpine)

Posted at

前提

cryptographyは、manylinux wheelsを提供しています (2.0以降) ので、すべての依存関係が含まれています。 pip 19.3以上のユーザー (またはpypyを使用していない場合はPython用のヘッダー、OpenSSLおよびlibffiライブラリ用のヘッダーが必要です) が、manylinux2014 (またはそれ以上) 互換のディストリビューション上で実行されている場合、以下のように実行するだけで動作します。

pip install cryptography

Alpineの場合

Alpineでは、Rustをインストールする必要があります。

apk add gcc musl-dev python3-dev libffi-dev openssl-dev cargo pkgconfig

openssl-devがエラーになる場合はlibressl-devを使用する必要があります。

その後、

pip install cryptography
0
1
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
1