我将我的 Mac 从 High Sierra 升级到 Catalina,但它坏了import pycurl。请参阅下面的错误。
我尝试了用户在这篇Stack Overflow 帖子中声称成功的所有选项,但无济于事。
ImportError: pycurl: libcurl link-time ssl backend (none/other) is different from compile-time ssl backend (openssl)
Run Code Online (Sandbox Code Playgroud)
我的 pycurl 版本是7.43.0.3
Python 版本是3.6.4。
【我也用Catalina的1.0.2t试过,然后libressl在下面试过】
% openssl version -a
LibreSSL 2.8.3
built on: date not available
platform: information not available
options: bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx)
compiler: information not available
OPENSSLDIR: "/private/etc/ssl"
% echo $PYCURL_SSL_LIBRARY
openssl
% echo $LDFLAGS
-L/usr/local/opt/openssl/lib
% echo $CPPFLAGS
-I/usr/local/opt/openssl/include
Run Code Online (Sandbox Code Playgroud)
我尝试了上面的所有命令组合:
% …Run Code Online (Sandbox Code Playgroud)