question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip list --outdated --user --not-required broken

See original GitHub issue

Environment

  • 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:closed
  • Created 5 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
eirnymcommented, Jun 22, 2018

It doesn’t work for my setup. I have pip version 10.0.1 on macOS 10.12 and use a virtual environment created by python -m venv ens followed by upgrading pip, setuptools and wheel. Currently they have versions 10.0.1, 39.2.0 and 0.31.1 respectively.

After installing latest ipython by pip install ipython (currently this is the version 6.4.0), pip list --not-required shows only ipython as it is the only was requrested. Nevertheless, commands pip list -o and pip list -o --not-required have same output, listiing a newer version of prompt-toolkit (ipython installs version 1.0.15 and proposed version is 2.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 run pip install ipython again to resolve all incompatibility issues.

My pip.conf has following contents:

[global]
require-virtualenv = true

[list]
format = columns
0reactions
lock[bot]commented, Jun 2, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found