一键升级所有pip过期库

import pip
from subprocess import call
from pip._internal.utils.misc import get_installed_distributions
for dist in get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
---------------------
作者:yuzhucu
来源:CSDN
原文:https://blog.csdn.net/yuzhucu/article/details/80287307
版权声明:本文为博主原创文章,转载请附上博文链接!

posted on 2019-06-07 00:11  Maolin  阅读(414)  评论(0编辑  收藏  举报

导航