0

コンピューターにopensslをインストールしました

brew install openssl
brew link --force openssl

Python や Flask で実行しようとすると、次のようなエラーが発生します。

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
4

1 に答える 1