Skip to content

Instantly share code, notes, and snippets.

@pestilence669
Last active August 29, 2015 14:23
Show Gist options
  • Save pestilence669/bc936d42c9ecbb686a06 to your computer and use it in GitHub Desktop.
Save pestilence669/bc936d42c9ecbb686a06 to your computer and use it in GitHub Desktop.
Upgrade all of my Python 2 & 3 PIP extensions
#!/usr/bin/sh
# vim: set ts=4 sw=4 noet:
# I can't wait for this to be a command-line flag
for i in 2 3; do
echo "Updating Python $i.x..."
pip$i freeze --local | grep -v '^\-e' | cut -d= -f1 | xargs pip$i install -U
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment