Python Pip Silent Install
Is there a way to do a silent install with pip? For some more background I'm using fabric to do server deployments and I want to be able to setup a new server or update an existing
Solution 1:
If the answer is always y
:
yes | pip install <package>
Solution 2:
A silent install is possible by using the quiet
flag:
pip install somepackage --quiet
This hides installation messages. Additionally, you may want to force "always yes" to prompts as per this answer:
yes | pip install somepackage --quiet
This truly has its mouth shut!
Solution 3:
Adding an answer, since things have changes since 2011...
Pip version 1.1 release on 2012-02-16 has introduced a command line switch --exists-action <action>
which allows to specify the default behavior from (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
According to the current documentation pip can only prompt for information if --exists-action
is unspecified.
Post a Comment for "Python Pip Silent Install"