Skip to content

Instantly share code, notes, and snippets.

@jeremy-donson
Last active May 10, 2018 15:56
Show Gist options
  • Save jeremy-donson/402df557004556249bd00c4418f0eaf7 to your computer and use it in GitHub Desktop.
Save jeremy-donson/402df557004556249bd00c4418f0eaf7 to your computer and use it in GitHub Desktop.
for n in $(pip3 list --outdated --format=freeze | cut -d '=' -f 1)
do
pip3 install $n --upgrade --force
done
# Ideally we would be testing each upgrade before we delete prior versions!!
# for those that fail, rerun with:
sudo -H pip3 install $n --upgrade --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment