Reputation: 61
I'm getting tired or installing the same 20 or 30 python packages all the time. Is there an off the shelf way to batch install all the most common python tools in one go? I know I can write my own bash script, but I would prefer something curated that I don't have to maintain by myself.
Upvotes: 0
Views: 4258
Reputation: 16057
Automatically install the most common packages? No.*
Semi-Automatically install a certain set of packages? Yes.
requirements.txt
(or anything you prefer).python -m pip download -r requirements.txt
.
python -m pip install -r requirements.txt
..bat
) files or shell scripts. So you can just 'double-click' them to execute.python -m pip install --upgrade -r requirements.txt
.(Another option):
python -m pip install package1 package2 package3 ... packageN
for each new install.PS. You almost never actually need all those many packages, and should use a Virtual Env per project.
Upvotes: 1