📜  在 Windows 上使用 pip 更新所有包 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:43.406000             🧑  作者: Mango

代码示例1
# Open your command shell and enter the below command. This will upgrade all packages system-wide to the latest or newer version available in the Python Package Index (PyPI)
pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}

#outputs the list of installed packages
pip freeze > requirements.txt

#updates all packages
pip install -r requirements.txt --upgrade