我的Flask应用Python代码出错了,错误如下:
Traceback (most recent call last):
File "######.py",
import pycurl
ImportError: dlopen(/Users/########/Library/Python/3.7/lib/python/site-packages/pycurl.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libcrypto.1.1.dylib
Referenced from: /Users/########/Library/Python/3.7/lib/python/site-packages/pycurl.cpython-37m-darwin.so
Reason: image not found
操作系统:Darwin内核版本18.6.0 - Mojave 10.14.5
尝试更新brew, openssl(链接和取消链接,导出LDFLAGS,导出CFFFLAGS),但似乎都不起作用。
$ brew install openssl
openssl 1.0.2s is already installed and up-to-date
$brew install curl-openssl
curl-openssl 7.65.3 is already installed and up-to-date
有什么其他的指点吗?提前感谢。