首页 > 技术文章 > 【Python】更新全部Python包

yanzhonghui 2021-03-09 17:27 原文

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

旧的版本
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U

推荐阅读