問題
DynamoDB
のテストを pytest
にて書こうとした時、
macOS Big Sur で pipenv install moto -dev
コマンドを実行したが、
下記のエラーがでてインストールできなかった。
shell
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
✘ Installation Failed
解決策
shell
env LDFLAGS="-L$(brew --prefix openssl@1.1)/lib" CFLAGS="-I$(brew --prefix openssl@1.1)/include" pipenv install moto -dev
Sources:
error while installing cryptography or cffi on Big Sur · Issue #5572 · pyca/cryptography · GitHub
Installation — Cryptography 3.3.dev1 documentation