-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Wrong info message shown for installation from URL #12928
Comments
I can reproduce this, but it seems like a bit of an edge case, I get a lot of connection errors first:
I've not looked at the code flow, but I assume because Maybe pip could exit early on the network errors. Or the wording of the error could be improved to account for the fact that pip isn't necessarily "looking at multiple versions" but "looking for other versions". |
Pip is not meant to look for other versions of django here, and I don't think pip does. In my view, the whole message should just not be printed, regardless of the wording. (And it should not "take a while" because there is nothing to be done.) |
If a clear improvement can made here I'm sure a PR would be accepted. |
Description
Pip gives the wrong error message "pip is looking at multiple versions of
<package>
" when a package is installed via a wheel file on the local file system or at a URL.Expected behavior
The message "pip is looking at multiple versions of
<package>
" makes no sense, given the command issued. Pip should not state that it is looking at multiple versions of django in the example below.pip version
24.2
Python version
3.12
OS
macOS
How to Reproduce
curl https://files.pythonhosted.org/packages/28/b4/110532cebfea2244d76119904da98c6fa045ebb202aee9ec7cbf36ea3cad/Django-5.1-py3-none-any.whl -o Django-5.1-py3-none-any.whl
pip install Django-5.1-py3-none-any.whl --no-cache
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: