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


Sun Jun 27 2021 14:09:50 GMT+0000 (UTC)

Saved by @SandeepD #python #flask

export FLASK_ENV=development                         

export FLASK_ENV=production 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.