[英]What does the “-U” option stand for in pip install -U
Despite a ton of Googling, I can't find any docs for pip's command line options/arguments. 尽管有大量的谷歌搜索,我找不到任何pip命令行选项/参数的文档。 What does
pip install -U
mean? pip install -U
是什么意思? Does anyone have a link to a list of pip's options and arguments? 有人有链接到pip的选项和参数列表吗?
Type pip install -h
to list help: 输入
pip install -h
列出帮助:
-U, --upgrade Upgrade all packages to the newest available version
-U, - upgrade将所有软件包升级到最新的可用版本
So, if you already have a package installed, it will upgrade the package for you. 因此,如果您已经安装了软件包,它将为您升级软件包。 Without the -U switch it'll tell you the package is already installed and exit.
没有-U开关,它会告诉你包已经安装并退出。
Each pip
subcommand has its own help listing. 每个
pip
子命令都有自己的帮助列表。 pip -h
shows you overall help, and pip [subcommand] -h
gives you help for that sub command, such as install
. pip -h
显示了整体帮助, pip [subcommand] -h
为您提供了该子命令的帮助,例如install
。
You can also find the full reference documentation online ; 您还可以在线查找完整的参考文档 ; the General Options section covers switches available for every
pip
subcommand, while each subcommand has a separate Options section to cover subcommand-specific switches; “ 常规选项”部分介绍了每个
pip
子命令可用的开关,而每个子命令都有一个单独的“ 选项”部分,以涵盖特定于子命令的开关; see the pip install
options section , for example. 例如,请参阅
pip install
options部分 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.