pip升级所有python包
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
print('ok')
注:此脚本并非原创,只是为了以后查找方便。
pip升级所有python包
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
print('ok')
注:此脚本并非原创,只是为了以后查找方便。