Python - Auto generate requirements.txt

Use pip’s freeze command to generate a requirements.txt file for your project: If you save this in requirements.txt, then you can pip install -r requirements.txt.

$ pipreqs /path/to/project


for additional options see https://github.com/bndr/pipreqs