python show modules which need updating

pip freeze --local | cut -d = -f 1 | xargs -n 1 pip search | grep -B2 'LATEST:'

Or

pip list --outdated 

Or

 pip list --outdated --format=columns

To Update outdates modues

This is the Mac format (-I {})

pip list --outdated --format=columns | cut -d ' ' -f 1 | xargs -I {} pip install {} --upgrade