import os
import subprocess
from subprocess import call
process = os.popen('pip list --outdated')
output = process.readlines()
for k in output:
m,n = k.split(' ',1)
call("sudo pip install --upgrade " + m,shell = True)
欢迎分享,转载请注明来源:内存溢出
import os
import subprocess
from subprocess import call
process = os.popen('pip list --outdated')
output = process.readlines()
for k in output:
m,n = k.split(' ',1)
call("sudo pip install --upgrade " + m,shell = True)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)