当我从MySQL导入flask_mysqldb时,出现以下错误。我该如何解决?
flask.cli.NoAppException
flask.cli.NoAppException: While importing "app", an ImportError was raised:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/flask/cli.py", line 235, in locate_app
__import__(module_name)
File "/Users/nanayaw/Desktop/flaskmysql/app.py", line 3, in <module>
from flask_mysqldb import MySQLdb
File "/usr/local/lib/python3.7/site-packages/flask_mysqldb/__init__.py", line 1, in <module>
import MySQLdb
File "/usr/local/lib/python3.7/site-packages/MySQLdb/__init__.py", line 18, in <module>
from . import _mysql
ImportError: dlopen(/usr/local/lib/python3.7/site-packages/MySQLdb/_mysql.cpython-37m-darwin.so, 2): Library not loaded: libssl.1.0.0.dylib
Referenced from: /usr/local/lib/python3.7/site-packages/MySQLdb/_mysql.cpython-37m-darwin.so
Reason: image not found