Skip to content

Instantly share code, notes, and snippets.

@tomdaley92
Last active February 8, 2018 18:55
Show Gist options
  • Save tomdaley92/a1904195b1acf3b29f7d96d14311fc0e to your computer and use it in GitHub Desktop.
Save tomdaley92/a1904195b1acf3b29f7d96d14311fc0e to your computer and use it in GitHub Desktop.
Update all pip packages within a virtualenv
# 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