issue in running the flask project

五迷三道 提交于 2021-02-11 14:00:36

问题


I'm not able to run the flask application, the error is error: Could not locate a Flask application. You did not provide the "FLASK_APP" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory.


回答1:


To get better pointed to the root of your problem answer, please specify what kind of operating system you are using. Usually, the problem is in the format of the command people use to set the value of the system variables. Check that you put spaces around '=' when you set the value in the command: if that is Windows environments then SET FLASK_APP = "app.py" OR $FLASK_APP = "app.py"



来源:https://stackoverflow.com/questions/61473224/issue-in-running-the-flask-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!