Created
September 25, 2022 11:11
-
-
Save extratone/e1cc5b3053573aa5ca4e41468470c3cb to your computer and use it in GitHub Desktop.
Commands to update all Python packages on Windows or Linux systems.
This file contains 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
pip list --outdated | |
pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_} | |
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U | |
pip3 list -o | cut -f1 -d' ' | tr " " "\n" | awk '{if(NR>=3)print)' | cut -d' ' -f1 | xargs -n1 pip3 install -U | |
pip freeze > requirements.txt | |
pip install -r requirements.txt --upgrade | |
pipenv shell | |
pipenv update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment