Skip to content

Instantly share code, notes, and snippets.

@Alex-Just
Last active July 1, 2017 09:02
Show Gist options
  • Save Alex-Just/2042da27c7ca5faa07ef91c17e2f2bcd to your computer and use it in GitHub Desktop.
Save Alex-Just/2042da27c7ca5faa07ef91c17e2f2bcd to your computer and use it in GitHub Desktop.
# Upgrading all packages with pip
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
# Pip freeze for only project requirements.txt
pip freeze -r requirements.txt | grep -B100 "pip freeze" | grep -v "pip freeze" > /tmp/requirements.txt && mv /tmp/requirements.txt .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment