email info@codeaffairs.com
Code Affairs Web Technologies!

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.

bubble_chart Short Description

Create python requirements file and install from requirements file
history_toggle_off Created: Jan. 14, 2021, 5:47 a.m. widgets Update: Jan. 14, 2021, 5:47 a.m.

category Related Categories

visibility Total Read: 13