使用 pip-review 库(推荐)
安装库
代码语言:javascript复制pip install pip-review
检查是否有需要更新的包
代码语言:javascript复制> pip-review
scikit-learn==0.23.2 is available (you have 0.23.1)
scipy==1.5.4 is available (you have 1.4.1)
seaborn==0.11.0 is available (you have 0.10.1)
...
--auto、-a
自动更新所有包
代码语言:javascript复制> pip-review -a
--interactive、-i
手动为每个包选择是否更新
代码语言:javascript复制> pip-review --interactive
matplotlib==3.3.3 is available (you have 3.1.3)
Upgrade now? [Y]es, [N]o, [A]ll, [Q]uit N
numpy==1.19.4 is available (you have 1.18.1)
Upgrade now? [Y]es, [N]o, [A]ll, [Q]uit Y
pandas==1.1.5 is available (you have 1.0.3)
Upgrade now? [Y]es, [N]o, [A]ll, [Q]uit N
...