Because the proxy restriction cannot use the PIP Install Cryptography command installs the cryptography, therefore installs this Python library to toss the day many time, almost suspected the life, fortunately steady, the surprise appeared. Share your experience below:
Environment win7,34 Bit
Download cryptography1.6
URL https://pypi.python.org/pypi/cryptography/
Unzip to D-Drive
Go to Doc command line, CD to Cryptography source directory, CD D:\cryptography1.6
Enter installation command python setup.py install
Find the following error, please follow the blog's other essay to install OpenSSL.
BUILD\TEMP.WIN-AMD64-2.7\RELEASE\_OPENSSL.C (434): Fatal error C1083: Could not open include file: "Openssl/opensslv.h": no such file or Directory
Error:command ' C:\\Program Files (x86) \\Microsoft Visual Studio 9.0\\vc\\bin\\amd64\\cl.exe ' failed with exit status 2
cryptography1.6 depend on the other libraries a bit more, I used the internal source installation: Configure the internal source path, with the PIP installation command to complete immediately. As for no internal source, a source to download to install AH. Dependent libraries are: Cffi, IPAddress, ENUM34, Setuptools, six, PYASN1, Idna, Pycparser
All right, get ready, continue with the installation, copy the command below, and paste it under Doc.
CD C:\Program Files (x86) \microsoft Visual Studio 9.0\VC
Vcvarsall.bat X86_AMD64
Set lib=c:\usr\local\ssl\lib;%lib%
Set include=c:\usr\local\ssl\include;%i Nclude%
CD C:\Users\hwx395047\Downloads\cryptography-1.6
Python setup.py Install
Wait for the installation to succeed.
Using c:\python27\lib\site-packages
Finished processing dependencies for cryptography==1.6
Install cryptography-1.6 under Windows