widgets Python Create Requirements File with Virtual Environment


For create requirements file


pip3 freeze > requirements.txt

Notice: For use this command please make you sure that you already installed the pip3 and if you have virtual environment please activate it.


Install from requirements file

Go to the folder that contains requirements.txt and run this command:


pip install -r requirements.txt

Bonus: There is also alternative ways with "pipreqs". If you intereseted you can visit "bndr/pipreqs" page under github.