pip show fails silently if package not found #6858
Labels
auto-locked
Outdated issues that have been locked by automation
C: list/show
'pip list' or 'pip show'
state: needs discussion
This needs some more discussion
type: enhancement
Improvements to functionality
Environment
All
pip version:
Up to 19.2.1
Python version:
All
OS:
All
Description
When you use
pip show
somepackage if somepackage is not found there is no output, this is not too bad when a single package is specified but when multiple ones are it is easy to fail to notice that one or more is missing. This was raised as a part of #5454 where trailing commas result in packages not being found.Expected behavior
I would expect
pip show
to give a clear indication of any package_(s)_ that it does not find, preferably either at the begining or end of output where it is less likely to be missed as mentioned by @chrahunt in his comments on #5454 - some thing like:The following package(s) are not installed: somepackage
How to Reproduce
type:
pip show asdf asdfasdf gsdfgfg dfgd
or any other random set of gibberish then try with 3 packages that you do have installed and one that you don't.pip show asdf asdfasdf gsdfgfg dfgd
or any other random set of gibberishpip show
with some packages that you have and one that you don't or gibberishOutput
Trying to spot the missing
asdf
in the above is not simple.I agree with the sentiment that "Errors should never pass silently." and think that this is a case in point.
In the spirit of "Unless explicitly silenced."
-q
could suppress this message.The text was updated successfully, but these errors were encountered: