python - Flask ImportError: No Module Named Flask - Stack Overflow

PHOTO EMBED

Sun Jun 27 2021 14:09:50 GMT+0000 (Coordinated Universal Time)

Saved by @SandeepD #python #flask


export FLASK_ENV=development                         

export FLASK_ENV=production 

FLASK_APP=hello.py flask run






If you have installed many dependencies in your system and you need requirements.txt for a specific project, you can install first pipreqs:

$ pip install pipreqs

and execute the below command under the project folder.

$ pipreqs

This command will generate requirements.txt file for the particular project.
content_copyCOPY

https://stackoverflow.com/questions/31252791/flask-importerror-no-module-named-flask