I know it's an easy way of doing it but i didn't find it neither here nor on google. So i was curious if there is a way to install multiple packages using pip. Something like:
pip install progra1 , progra2 ,progra3 ,progra4 .
or:
pip install (command to read some txt containing the name of the modules)
and in the requirements.txt file you put your modules in a list, with one item per line.
Django=1.3.1
South>=0.7
django-debug-toolbar
give the same command as you used to give while installing a single module only pass it via space delimited format
Complementing the other answers, you can use the option
--no-cache-dir
to disable caching in pip. My virtual machine was crashing when installing many packages at once withpip install -r requirements.txt
. What solved for me was:For installing multiple packages on the command line, just pass them as a space-delimited list, e.g.:
For installing from a text file, then, from
pip install --help
:Take a look at the pip documentation regarding requirements files for their general layout and syntax - note that you can generate one based on current environment / site-packages with
pip freeze
if you want a quick example - e.g. (based on having installedwsgiref
andboto
in a clean virtualenv):You can install packages listed in a text file called requirements file. For example, if you have a file called
req.txt
containing the following text:and you issue at the command line:
pip will install packages listed in the file at the specific revisions.