Error: Could not locate a Flask application. Use the ‘flask --app’ option, ‘FLASK_APP’ environment variable, or a ‘wsgi.py’ or ‘app.py’ file in the current directory.
我按照flask入门教程,创建了一个env虚拟环境,在我的user/用户名下面,当这个app.py在env相同目录下,可以flask run,一切正常
当把app.py放进这个目录下的一个文件夹,或者放入env文件夹的时候,再flask run就会显示:
Error: Could not locate a Flask application. Use the ‘flask --app’ option, ‘FLASK_APP’ environment variable, or a ‘wsgi.py’ or ‘app.py’ file in the current directory.
求指导,为什么。。。