python一键升级所有pip package的方法
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
相关推荐
iFlyAI 2020-09-14
xinhao 2020-07-20
taiyangshenniao 2020-06-25
pythonxuexi 2020-06-25
zhaobig 2020-06-25
qingqingpiaoguo 2020-06-22
yjsflxiang 2020-06-14
txlCandy 2020-06-09
bizercsdn 2020-06-08
JakobHu 2020-05-27
davidliu00 2020-05-26
Laozizuiku 2020-05-17
zcabcd 2020-05-15