pip没有选项可以upgrade所有的package。。。
不过可以这样
pip freeze --local | cut -d = -f 1 | xargs pip install -U
或者用python代码
import pip from subprocess import call for dist in pip.get_installed_distributions(): call("pip install --upgrade " + dist.project_name, shell=True)
by 1957