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.
This command will generate requirements.txt file for the particular project.