It is a good practice to have all the application dependencies listed in a file called requirements.txt so when we need to run the app we don’t need with all the missing requirements errors and we can easily install them with pip with one line of code.
Generating the requirements.txt file
We will need to have pipreqs installed
pip install pipreqs
To generate the file just run: