批量更新过期的pip库

[code lang="python" collapse="false"]
#update dated lib_packages
#!usr/bin/python3import pipfrom subprocess 
import callfrom pip._internal.utils.misc 
import get_installed_distributionsfor dist in get_installed_distributions():call("pip install --upgrade " + dist.project_name, shell=True)
[/code]

评论关闭。