Installing Cryptography via Pip with MacPorts or Homebrew

If you have tried installing / updating pyOpenSSL to version 0.14 you may have run into an issue when it tries to install the required package cryptography. The specific error I encountered was:

To get around this, you’ll need to set some environment variables before installing cryptography:

A pull request has been opened to add this to the documentation but as of this writing it has not yet been merged.

10 thoughts on “Installing Cryptography via Pip with MacPorts or Homebrew”

  1. Good day !

    I will be very happy, if you told me: that i doing wrong ?

    File “C:\Python27\lib\cryptography\hazmat\bindings\openssl\binding.py”, line 1
    3, in
    from cryptography.hazmat.bindings._openssl import ffi, lib
    ImportError: No module named _openssl

    P.S. I think. that file: _openssl.py is absent on my HDD

    With best regrets!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s