Home > other >  Install the cryptography error Failed to build cryptography
Install the cryptography error Failed to build cryptography

Time:10-05



Command: env CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS=1 LDFLAGS="$brew -- prefix ([email protected])/lib/libssl. A $brew -- prefix ([email protected])/lib/libcrypto. A" CFLAGS="-i $brew -- prefix ([email protected])/include" pip3 install cryptography

Error:
Collecting cryptography
Using cached https://files.pythonhosted.org/packages/a3/5f/d5b7d21006e3c1a3919a3cc14e2a5ce1cee1c7ff635f09b31d91bdaff377/cryptography-2.6.tar.gz
Installing the build dependencies... The done
Getting the requirements to build the wheel... The done
Preparing wheel metadata... The done
Collecting asn1crypto & gt;=0.21.0 (from cryptography)
Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting cffi!=1.11.3, & gt;=1.8 (from cryptography)
Using cached https://files.pythonhosted.org/packages/6b/af/e39e89ecbfb676c6aa5855b1795bb207f4005187495c8d40e26b5fb51bfa/cffi-1.12.2-cp37-cp37m-macosx_10_9_x86_64.whl
The Requirement already satisfied: six>=1.4.1 in/Library/Frameworks/Python framework Versions/3.7/lib/python3.7/site - packages (from cryptography) (1.11.0)
The Requirement already satisfied: pycparser in/Library/Frameworks/Python. The framework Versions/3.7/lib/python3.7/site - packages (from cffi!=1.11.3, & gt;=1.8 & gt; Cryptography) (2.19)
Building wheels for collected packages: cryptography
Building wheel for cryptography (PEP 517)... The done
Running the setup. Py clean for cryptography
Failed to build cryptography
Could not build wheels for cryptography which use PEP 517 and always be installed directly

CodePudding user response:



Easy, try to run this:

PIP install pep517

And then try to install again

Python3 -m PIP install cryptography
  • Related