1pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
1py2
2$ pip install pip-review
3
4$ pip-review --local --interactive
5
6py3
7$ pip3 install pip-review
8
9$ py -3 -m pip_review --local --interactive
1import pkg_resources
2from subprocess import call
3
4packages = [dist.project_name for dist in pkg_resources.working_set]
5call("pip install --upgrade " + ' '.join(packages), shell=True)
6