1pip freeze #view requirements to be created (best done in virtual env)
2pip freeze > requirements.txt #create requirements.txt (best done in virtual env)
3pip install -r requirements.txt #install requirements.txt (best done in virtual env)
1# to generate the requirements.txt file:
2pip install pipreqs # Install via teminal.
3pipreqs path/to/project # Generate requirements.txt file
4# There is now a requirements.txt file in the project folder.
5# to install a requirements.txt file:
6pip install -r requirements.txt
7# please leave a like ;)
8