pip命令备忘


6个月前 271次点击 来自 Linux

标签: Python

How To Update All Python Packages

1. 删除本地所有package

pip freeze | xargs pip uninstall -y

2. 删除特定package

pip freeze > requirements.txt
pip uninstall -r requirements.txt -y

3. 更新outdated package

pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U

Made with in Shangrao,China By Devler.

Copyright © Devler 2012 - 2022

赣ICP备19009883号-1

Top ↑