首页 > 编程语言 >python常用命令

python常用命令

时间:2023-01-08 22:00:22浏览次数:38  
标签:available Upgrade python review -- 常用命令 pip es

使用 pip-review 库(推荐)
安装库
pip install pip-review

检查是否有需要更新的包
> 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
自动更新所有包

> pip-review -a

--interactive、-i
手动为每个包选择是否更新

> 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

————————————————
当然,也可以用:

pip批量更新
pip3 list -o //批量查看可更新的版本

pip install --upgrade ×××  来进行一个一个的更新

标签:available,Upgrade,python,review,--,常用命令,pip,es
From: https://www.cnblogs.com/artin/p/17035543.html

相关文章