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)

 

相关文章:

  • 2021-05-31
  • 2021-09-26
  • 2022-12-23
  • 2022-02-09
  • 2021-09-25
  • 2021-04-29
  • 2021-08-10
猜你喜欢
  • 2022-02-09
  • 2022-02-09
  • 2022-02-09
  • 2021-06-24
  • 2021-07-04
  • 2021-11-20
相关资源
相似解决方案