-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Confusion due to conflict message that reports conflicts incorrectly #11796
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
I can't reproduce your issue, please provide more details (pip's exact version, environment maybe?).
There's a reason for pip checking a bunch of versions instead of just the latest one. You may find some useful info about this (which is called "dependency resolution") at https://pip.pypa.io/en/stable/topics/more-dependency-resolution/ Also, maybe this is a And btw, I would suggest you to be nicer with your words. If there's a real bug I'm sure we'll find out a fix, and if you or the package ( |
@DiddiLeija Hello, I don't think recursive download all version is a solution to resolve dependencies problem. From users view, some libs might have lots of versions (even minor versions), it really anoying to watch them download all and waiting for the lib I need to install which need that lib as dep. Especially consider users in China have a very poor internet connection with many pip host (some of them might have their own pip host but server not inside China) It can be very easily broken to download them all. I just post this issue as a user experiences aspect, it;s might be not a bug or something. |
I am not a expert of pip, I am not really undertstand algorithm behind pip, maybe they have their own thoughts, but as an user, first of all, as this issue states, it tells me there have a conflict, but I really don't understand why?
anywhere? So if it could be, a much more detailed, reasonable failure message could make users much more clear. And sometimes, some lib have a lib which constraint as libxxx >= 4.10 |
I'd say your dependency issue (around
Sounds reasonable. We could work on a clearer message on dependency conflicts :) |
I am able to reproduce the unhelpful conflict message in a clean virtual environment on Linux:
Get the following error:
There are other known conflict report bugs, e.g. #11009 In this case it looks like tensorflow does not support Python 3.11 and Pip never reports that that's the issue, I know other issues have been raised that touch on this but I can't find them right now. For the actual issue of why you can not install I think you have already found out here: google-ai-edge/mediapipe#4088 (comment) |
I wrote up a feature request in the past to report when there are no valid packages available: #10478 In that request I was specifically thinking about when pip can't build metadata, which is now a non-issue, but I think the feature in general would be helpful to any situation where Pip can't find a valid package for a given requirement to report in the conflict message. |
thanks, this now looks far more reasonable. |
Going back through the issues I think this issue may be a duplicate of #10953 or at least closely related, in the sense that Pip is reporting a conflict but really it's a "package can not be found to solve requirement" for whatever reason. |
Let's consolidate this one into that issue then. :) |
Description
I don;t know when, start from some version of pip, it's extremly sucks.
For the latest one
Conflict??????
Tell me which part is conflict?????
BTW, why newest pip always download all old version automatically???
I just install
pip install mediapipe_model_maker
Which means, I just need latest one, plkease stop write code donwload all versions!!!
Expected behavior
No response
pip version
latest
Python version
latest
OS
amcos
How to Reproduce
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: