更正了与SQLAlchemy相关的错误后,我收到此错误:
flask.cli.NoAppException: While importing "application", an ImportError was raised:
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/flask/cli.py", line 235, in locate_app
__import__(module_name)
File "/Users/Ryan/Desktop/HCS/project/application.py", line 6, in <module>
from passlib.apps import custom_app_context as pwd_context
ImportError: No module named 'passlib'
passlib模块 位于:/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/flask
环境变量设置为FLASK_APP = application.py。这是在安装了烧瓶的文件夹中设置的。我尝试将文件手动放在上面引用的文件夹中,并使用pip无效。我该如何解决?