-
Notifications
You must be signed in to change notification settings - Fork 1.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
Cache mismatch when installing a package for differents Python versions #12273
Comments
I think this might be correct, though. Notice that pip will happily install it:
|
Hi Charlie, and thanks for the quick answer. Agree that we can force PIP do install a specific version, but:
In the log linked in the description, we see that
I think that the |
It seems reasonable to change this: #12301 |
Summary
When a Python wheel is bound to specific Python versions, the installed version may not match the current Python version.
Package multiprocess is a wheel built for many Python versions:
When we install
multiprocess
in a Python 3.10 venv, and then in a Python 3.11 or 3.12 venv,uv
reuse the cache entry from Python 3.10 despite all information in logs are pointing to the expected package. Going from a higher version to a lower version work as expected (3.12 then 3.10).pip
install the expected version.Know workarounds are:
--no-cache
on command lineuv cache clean multiprocess
How to reproduce (tested on Linux RHEL8 and Ubuntu22):
Verbose log: uv-multiprocess-mismatch.txt
Platform
RHEL 8, Ubuntu 22
Version
uv 0.6.7
Python version
3.10, 3.11, 3.12
The text was updated successfully, but these errors were encountered: