Upgrade all pip-installed Python packages

To upgrade all the python packages that was installed using pip you can use this following command:

sudo pip freeze --local | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 sudo pip install -U