Skip to content

Instantly share code, notes, and snippets.

@israeljrs
Created September 28, 2016 19:22
Show Gist options
  • Save israeljrs/219ac956b3cf76acccb9f5a0d9acf849 to your computer and use it in GitHub Desktop.
Save israeljrs/219ac956b3cf76acccb9f5a0d9acf849 to your computer and use it in GitHub Desktop.
Show command to update pip in python.

list packages outdated.

$ pip list --outdated

update one package.

$ pip install -U package

update all packages with answoer yes/no.

$ pip list --outdated | awk '{print $1}' | xargs -n1 -p sudo pip install -U

update all packages without answare anythink.

$ pip list --outdated | awk '{print $1}' | xargs -n1 sudo pip install -U

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment