Python批量更新第三方库的方法
1、Win + R 键打开“运行”对话框,输入"cmd"进入cmd命令行。win10系统的也可以直接搜索"cmd".

3、输入如下命令:from pip._internal.utils.misc import get_installed_distributionsfrom subprocess import callfrom time import sleepfor dist in get_installed_distributions(): call("pip install --upgrade " + dist.project_name, shell=True)
4、等待一会就开始自动更新所有第三方库了