How do I install pyOpenSSL on Mac OS X?

2019-01-07 01:20发布

问题:

I am using Titanium 3.0 and trying to update pyOpenSSL. I have checked the python website and only see downloadable links for Windows. In the Tianium forum they say that "If you installed Python using MacPorts or Homebrew, use the same utility to install PyOpenSSL and PyCrypto." I tried using homebrew and did "brew install pyopenssl" and got the error message "No available formula for pyopenssl". Any advice?

回答1:

try using easy_install

easy_install PyOpenSSL

easy_install PyCrypto



回答2:

Install via Homebrew:

brew install openssl env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include" pip install cryptography

This answer is from https://chriskief.com/2014/03/25/installing-cryptography-via-pip-with-macports-or-homebrew/comment-page-1/#comment-2809



标签: pyopenssl