Install cryptography-1.6 under Windows

Source: Internet
Author: User
Tags install openssl

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.