Last active
September 4, 2024 15:13
-
-
Save paddy74/d6923e92100d7c986fbc5abf1b9c2d73 to your computer and use it in GitHub Desktop.
Upgrade all Python packages in the active environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/pypa/pip/issues/4551 | |
python -m pip freeze | ForEach-Object{$_.split('==')[0]} | %{python -m pip install --upgrade $_} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://github.com/pypa/pip/issues/4551 | |
python -m pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 python -m pip install -U |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment