Python pip silent install

Is there a way to make a silent installation using pip?

For some background, I use fabric to deploy the server, and I want to be able to configure a new server or update an existing one without any interaction, and some of the packages require a y / n response.

+10
source share
2 answers

If the answer is always y :

 yes | pip install <package> 
+30
source

Adding an answer, since everything has changed since 2011 ...

The release of version 1.1 for Pip 2012-02-16 introduced the command line --exists-action <action> which allows you to specify the default behavior of (a) witch, (i) gnore, (w) ipe, (b) Ackup, (a ) Board).

According to current documentation, pip can request information only if --exists-action not specified.

0
source

Source: https://habr.com/ru/post/903191/


All Articles