pip list --outdated --user --not-required broken
See original GitHub issueEnvironment
- pip version:
pip 10.0.1 from /usr/lib/python3.6/site-packages/pip (python 3.6)
- Python version:
Python 3.6.5
- OS:
Linux archlinux 4.16.11-1-ARCH #1 SMP PREEMPT Tue May 22 21:40:27 UTC 2018 x86_64 GNU/Linux
Description
The combination of --outdated
, --user
, and --not-required
does not enforce the --not-required
flag and instead just shows all outdated packages in the user directory.
Expected behavior
The command should not include required packages.
How to Reproduce
Below is a full example from my own machine.
$ pip list --user --not-required
Package Version
----------- -------
httpie 0.9.9
lxml 4.2.1
neovim 0.2.6
pycodestyle 2.4.0
pylint 1.9.1
pyls-mypy 0.1.2
yamllint 1.11.1
yq 2.6.0
$ pip list --user --outdated
Package Version Latest Type
------- ------- ------ -----
parso 0.2.0 0.2.1 wheel
$ pip list --user --outdated --not-required
Package Version Latest Type
------- ------- ------ -----
parso 0.2.0 0.2.1 wheel
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (7 by maintainers)
Top Results From Across the Web
pip list --outdated and --uptodate broken #6777 - GitHub
pip list with no switches, and pip list --not-required both function as expected. I have not tested other list switches. Expected behavior
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 >Check all installed Python packages with pip list/freeze
Packages output by pip list --not-required will not break dependencies of other packages even if they are uninstalled. This is useful for ...
Read more >Pip broken after upgrade. Cannot unsinstall ... - Stack Overflow
My preferred way of doing that is to use pyenv , which requires some set up (installing the necessary build packages). If you...
Read more >Pip search is still broken - Discussions on Python.org
Pip search is still broken · Change the default behavior of pip to cache search results by default and only grab new package...
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
It doesn’t work for my setup. I have pip version
10.0.1
on macOS 10.12 and use a virtual environment created bypython -m venv ens
followed by upgradingpip
,setuptools
andwheel
. Currently they have versions10.0.1
,39.2.0
and0.31.1
respectively.After installing latest
ipython
bypip install ipython
(currently this is the version6.4.0
),pip list --not-required
shows only ipython as it is the only was requrested. Nevertheless, commandspip list -o
andpip list -o --not-required
have same output, listiing a newer version ofprompt-toolkit
(ipython installs version1.0.15
and proposed version is2.0.3
).During update installation pip shows a warning:
ipython 6.4.0 has requirement prompt-toolkit<2.0.0,>=1.0.15, but you'll have prompt-toolkit 2.0.3 which is incompatible.
Ignorance of this warning will break
ipython
completely and I have to runpip install ipython
again to resolve all incompatibility issues.My
pip.conf
has following contents:This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.