Skip to content

Instantly share code, notes, and snippets.

@bernardobarreto
Created April 4, 2012 06:16
Show Gist options
  • Save bernardobarreto/2298511 to your computer and use it in GitHub Desktop.
Save bernardobarreto/2298511 to your computer and use it in GitHub Desktop.
update all your python packages via pip
# pip doesn't have a command to update all python packages yet, so you can use the code below for now
# big command right? make an alias. Oh, you maybe need to put "sudo" before "pip install"
$ (echo pip; pip freeze | awk 'BEGIN{FS="=="}{print $1}') | xargs pip install -U
@gabriellima
Copy link

I think you could change first part to

echo pip; pip freeze | cut -d= -f 1

getting:

$ (echo pip; pip freeze | cut -d= -f 1) | xargs pip install -U

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