【问题标题】:Python Openssl not linked with brewPython Openssl 未与 brew 链接
【发布时间】:2017-12-24 21:13:59
【问题描述】:

我的 brew OpenSSL 版本是 1.0.2l,我的 Python OpenSSL 版本是 9.8。我已经尝试解决这个问题几个小时了。我尝试更改 .bash 配置文件中的路径,我尝试卸载然后重新安装

python --with-brewed-openssl

我已经更新/升级/修剪/修复了 brew,我尝试使用以下命令链接 openssl

brew link openssl --force

但这会导致 1.0.2l 和 1.0.1f 出现此错误,

Linking keg-only openssl means you may end up linking against the 
insecure,
deprecated system OpenSSL while using the headers from Homebrew's 
openssl.
Instead, pass the full include/library paths to your compiler e.g.:
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib

我已经尝试为某些文件创建符号链接(尽管我不确定这是在做什么)......我不知道还能尝试什么。我的 python 版本是 2.7.13_1。

【问题讨论】:

标签: python openssl homebrew


【解决方案1】:

正如 Homebrew 告诉您的,OpenSSL 已被弃用且不安全;这就是为什么它会阻止您链接它。

您剩下的唯一解决方案是 build Python from source 并在 ./configure 步骤向其传递额外的标志,如 Homebrew 错误消息所建议的那样。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-08-06
    • 2019-02-18
    • 2018-02-09
    • 1970-01-01
    • 1970-01-01
    • 2015-06-29
    • 2013-06-28
    相关资源
    最近更新 更多