pip list upgradable code example
Example 1: pip list upgradable
$ pip list --outdated
requests (Current: 1.1.0 Latest: 1.2.0)
Example 2: pip list upgradable
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U