-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
uv picks the wrong version of a package and fails (pip does not) #7990
Comments
Hi! Thanks for all the details. Did you read the local version identifier section of the pip compatibility guide? |
Thank you, I saw some potential causes for this, it seems like it spiraled downwards towards an older version, and I suppose I can try to add an extra constraint on the version and fix everything that way. On the topic of pip compatibility, it seems that pip is capable of installing packages while there's an app running while uv seems to fail, is this to be expected? |
Thanks! |
I wanted to add a user story in regards to this: uv pip install --dry-run torch==2.3.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
× No solution found when resolving dependencies:
╰─▶ Because there is no version of torch==2.3.0 and you require torch==2.3.0, we can conclude that your requirements
are unsatisfiable. as an end user, I don't know exactly what is the + they are using. I think this time I will just try to guess it, but since the + is so ingrained in python right now, there might need to be a way to help find those packages/resolve those conflicts. (After assuming that there's no pytorch 2.5.0 with Cuda 11.8, I thankfully came here to find that it's torch==2.5.0+cu118) Also great job on
Thus I can testify that |
uv:
https://github.com/rsxdalv/tts-generation-webui/actions/runs/11224348164/job/31200883591
pip:
https://github.com/rsxdalv/tts-generation-webui/actions/runs/11224124790/job/31200229110
context:
Docker image:
nvidia/cuda:11.8.0-devel-ubuntu22.04
(Python 3.10.12, uv 0.4.18)uv pip install --no-cache-dir --system setuptools torch==$TORCH_VERSION torchvision torchaudio
pip3 install --no-cache-dir --upgrade pip==23.3.2 setuptools
breaking point:
uv pip install --no-cache-dir --system --verbose torch==$TORCH_VERSION -r requirements.txt
Requirements file:
Error:
https://github.com/rsxdalv/tts-generation-webui/actions/runs/11224348164/job/31200883591#step:6:8382
Full dockerfile:
The text was updated successfully, but these errors were encountered: