Reputation: 11
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.
Upvotes: 0
Views: 643
Reputation: 100
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"
Upvotes: 2