Last active
February 8, 2018 18:55
-
-
Save tomdaley92/a1904195b1acf3b29f7d96d14311fc0e to your computer and use it in GitHub Desktop.
Update all pip packages within a virtualenv
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
# Check and update all local packages | |
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U | |
# Write the new requirements to a file | |
pip freeze > requirements.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment