Pipreqs to check requirments
Making a python project and listing a set of requirements usually happens during the project development. So usually what happens is that the requirments get listed afterwards. One way to do it is, making use of pip freeze but this is not the best method.
A better way to do this is, making use of pipreqs. It is a python package that checks alls requirements of a certain python project and list it in a requirment.txt. And only the ones you actually use.