import pip
from subprocess import call

for dist in pip.get_installed_distributions():
    call("pip install --upgrade " + dist.project_name, shell=True)

 

posted on 2016-04-02 13:44  qqhfeng16  阅读(733)  评论(0编辑  收藏  举报