pip install
should crash when an invalid extra/optional dependency is specified
#12516
Closed
1 task done
Labels
What's the problem this feature will solve?
Pip users can sometimes accidentally mistype the name of an extra/optional dependency (e.g.
pip install evaluate[evaluater]
instead ofpip install evaluate[evaluator]
). This currently will lead to the desired extra dependency not being installed, and pip will give a warning to stderr (evaluate 0.4.2.dev0 does not provide the extra 'evaluater'
) but otherwise continue as normal (including producing a return code of0
).This can lead to users not noticing that a dependency was not installed.
Describe the solution you'd like
Pip should crash when a user specifies a non-existent extra dependency, just as would be the case with a non-existent top-level package.
Alternative Solutions
I don't believe this section is applicable
Additional context
n/A
Code of Conduct
The text was updated successfully, but these errors were encountered: