Error: Could not locate a Flask application


#1

58%402x
结构如下,运行方式在helloflask下pipenv shell 进入虚拟环境后 执行flask run 后报错

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.

求教各位!知道的请不吝赐教!谢谢


#2

试了一下把.flaskenv .env 以及app.py 全部放到helloflask文件夹下,一切正常。但是放回hello下,就继续报错