pip全量更新

查看所有的过期库
pip list --outdated

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)

你可能感兴趣的:(pip全量更新)