auto generate requirements.txt code example
Example 1: python generate requirements.txt
# First:
pip install pipreqs
# Then:
pipreqs path/to/project
# There is now a requirements.txt file in the project folder.
Example 2: auto create requirements.txt
pip3 freeze > requirements.txt