I can use pip list -o
to get a list of outdated packages but I would like to only get a list of outdated packages which are listed in a particular requirements file. Basically the equivalent of pip freeze -r requirements.txt
for outdated packages.
I could use --not-required
but this would still list packages installed which are installed but not listed in the requirements file.
Use this tool: https://github.com/simion/pip-upgrader
All you have to do is the following:
pip install pip-upgrader
pip-upgrade
This then walks you through all packages that can be upgraded in the requirements.txt
in an interactive fashion.