我在我的电脑上安装了 openssl
brew install openssl
brew link --force openssl
如果我想用 python 或烧瓶运行它,我会收到如下错误。
FLASK_ENV=development python -m {APP_PATH}.wsgi
输出:
File "/Users/sumeyyeozkaynak/.virtualenvs/OptiwisdomSystemPants/lib/python3.7/site-packages/firebase_admin/_utils.py", line 21, in <module>
import httplib2
File "/Users/sumeyyeozkaynak/.virtualenvs/OptiwisdomSystemPants/lib/python3.7/site-packages/httplib2/__init__.py", line 40, in <module>
import ssl
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: dlopen(/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_ssl.cpython-37m-darwin.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_ssl.cpython-37m-darwin.so
Reason: image not found