-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Prevent pip installs that start with pip install pip install
#11484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@pradyunsg to clarify I'm not suggesting that the |
I don't think this is a common enough mistake to justify a special case error for it. |
I've made it 3 times in the last week or so |
If you believe what I believe, that no one intentionally installs |
pypi/support#451 has been closed since the problematic package has been removed. |
What's the problem this feature will solve?
When copying install commands, it is very easy to accidentally copy a command that already has
pip install
, meaning that pip will attempt to installpip
andinstall
. This isn't a massive issue since it's easy enough topip uninstall install
soon afterwards, but it's still a bit of a nuisance.Describe the solution you'd like
If a command starts with
pip install pip install
, an error should be printed instead of proceeding with the action. Perhaps for the one-in-a-million case where it's intentional, we can prompt the user with an "If this was intentional, please runpip install install pip
instead".Alternative Solutions
I can't think of any - I think this is a pretty small quality of life improvement.
Additional context
Code of Conduct
The text was updated successfully, but these errors were encountered: