Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List only outdated pip packages mentioned in requirements file

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.

like image 398
phk Avatar asked Mar 04 '23 23:03

phk


1 Answers

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.

like image 98
Dakkaron Avatar answered Apr 06 '23 07:04

Dakkaron