时间:2020-10-14 10:03:41 | 栏目:Python代码 | 点击:次
pip_ungrade_all.py代码如下:
# -*- coding: utf-8 -*- import pip from subprocess import call for dist in pip.get_installed_distributions(): call("pip install --upgrade " + dist.project_name, shell=True)
以管理身份执行脚本pip_ungrade_all.py
# python pip_ungrade_all.py