To upgrade all packages installed with pip:

pip install pip-review

Then run:

pip-review --auto

As an alternative, you can use:

pip list --outdated | awk 'NR > 2 {print $1}' | xargs -n1 pip install --upgrade