-U 是 --upgrade 的简写。就是把所有包升级到最新版。 可以使用 man pip 查看其介绍: $ man pip -U, --upgrade Upgrade all packages to the newest available version. This process is recursive regardless of whether a dependency is already satisfied.
pip install -h
就有说明了,就是--upgrade
,意思是如果已安装就升级到最新版。