Upgrade all user-installed pip packages

$ pip list --user --outdated --format=json | jq ".[].name" | xargs pip install --user --upgrade

pip list --user --outdated lists all user-installed packages that are outdated. We use jq to extract the package names from the output and feed them to xargs.

Leave a Reply

Your email address will not be published. Required fields are marked *