pip list --outdated --format=freeze does not return the right version of the outdated packages.
See original GitHub issueDescription
To see the outdated packages, just pip list -o
, but when I use --format=freeze
, the command returns an output with the oldest versions and not the newest ones.
Expected behavior
Returns an output with the newest versions of the packages.
pip version
21.0.1
Python version
3.9.4
OS
macOS Big Sur
How to Reproduce
- Get package from ‘…’
- Then run ‘…’
- An error occurs.
Output
(happiness) stephane@gandalf ~/s/g/m/happiness (main)> pip list -o
Package Version Latest Type
------------------- ------- ------ -----
asgiref 3.3.1 3.3.4 wheel
decorator 4.4.2 5.0.5 wheel
Django 3.1.7 3.2 wheel
django-extensions 3.1.1 3.1.2 wheel
django-heroku 0.0.0 0.3.1 wheel
djangorestframework 3.12.2 3.12.4 wheel
Faker 6.5.0 8.0.0 wheel
gunicorn 20.0.4 20.1.0 sdist
idna 2.10 3.1 wheel
ipython 7.21.0 7.22.0 wheel
parso 0.8.1 0.8.2 wheel
prompt-toolkit 3.0.16 3.0.18 wheel
Pygments 2.8.0 2.8.1 wheel
urllib3 1.26.3 1.26.4 wheel
(happiness) stephane@gandalf ~/s/g/m/happiness (main)> pip list -o --format=freeze
asgiref==3.3.1
decorator==4.4.2
Django==3.1.7
django-extensions==3.1.1
django-heroku==0.0.0
djangorestframework==3.12.2
Faker==6.5.0
gunicorn==20.0.4
idna==2.10
ipython==7.21.0
parso==0.8.1
prompt-toolkit==3.0.16
Pygments==2.8.0
urllib3==1.26.3
Code of Conduct
I agree to follow the PSF Code of Conduct.
Hi all,
Here is my bug report about pip list -o --format=freeze
Thank you
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
How to upgrade all Python packages with pip? - Stack Overflow
The below Windows cmd snippet does the following: Upgrades pip to latest version. Upgrades all outdated packages. For each packages being upgraded checks ......
Read more >The one-liner for updating PIP and all outdated packages
Since pip freeze only outputs the installed packages in requirements format, but not pip itself, we must run pip list --format=freeze instead.
Read more >Find outdated/updatable pip packages - Super User
Since version 1.3, pip features a new command: $ pip list --outdated requests (Current: 1.1.0 Latest: 1.2.0). See this post for more information....
Read more >How to Update All Python Packages - ActiveState
1. Check that Python is installed · 2. Get a list of all the outdated packages · 3. Upgrade outdated packages.
Read more >How to upgrade all Python packages with pip - YouTube
... pip with grep on Ubuntu Linux: pip3 list -- outdated -- format=freeze ... Don't forget to drop a like and share it...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A prime way to destroy an SSD and kill data-capped Internet connections, not to mention a massive waste of time, instead of providing a sensible means, namely
--upgrade-all
.Instead the SysAdmin must learn complicated scripting (
jq
is seriously complicated, PowerShell not exactly easy either), whenpip
could internally do this much easier with existing functions.0 steps forward. 2 or 3 steps backwards.
I agree, let’s make the two mutually exclusive.