Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install package using pip and save name to file to install it later

I'd like to do something like pip install requests --save packages.txt so I could have list of all I used and later I could just pip -r install packages.txt when I clone it from repository.

like image 420
Meroz Avatar asked Nov 27 '25 03:11

Meroz


1 Answers

you can use freeze to dump all the installations to your .txt file as:

 pip freeze > requirements.txt

And, you can run following later when needed :

 pip install -r requirements.txt
like image 95
Sijan Bhandari Avatar answered Nov 28 '25 17:11

Sijan Bhandari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!