3

我正在使用 Titanium 3.0 并尝试更新 pyOpenSSL。我检查了 python 网站,只看到 Windows 的可下载链接。在 Tianium 论坛上,他们说“如果您使用 MacPorts 或 Homebrew 安装 Python,请使用相同的实用程序来安装 PyOpenSSL 和 PyCrypto。” 我尝试使用自制软件并执行“brew install pyopenssl”并收到错误消息“pyopenssl 没有可用的公式”。有什么建议吗?

4

2 回答 2

6

尝试使用 easy_install

easy_install PyOpenSSL

easy_install PyCrypto

于 2013-01-28T17:12:10.357 回答
0

通过 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

这个答案来自https://chriskief.com/2014/03/25/installing-cryptography-via-pip-with-macports-or-homebrew/comment-page-1/#comment-2809

于 2017-08-30T09:32:31.620 回答