python pip silent install

后端 未结 2 1679
情歌与酒
情歌与酒 2021-02-13 12:00

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

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-13 12:51

    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 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.

提交回复
热议问题