You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
I'm trying to run the same project on macOS and Ubuntu. For that, I have two sources for pytorch as described in the uv docs. I'm using uv version uv 0.5.11 (c4d0caaee 2024-12-19) on macOS 14.4.1
uv incorrectly resolves the macOS to version 2.5.1+cpu (only available on linux) instead of 2.5.1. When you attempt to uv sync then it fails with this message.
error: Distribution `torch==2.5.1+cpu @ registry+https://download.pytorch.org/whl/cpu` can't be installed because it doesn't have a source distribution or wheel for the current platform
Background
I'm trying to run the same project on macOS and Ubuntu. For that, I have two sources for pytorch as described in the uv docs. I'm using uv version
uv 0.5.11 (c4d0caaee 2024-12-19)
on macOS 14.4.1Steps to Reproduce
What Happens
uv incorrectly resolves the macOS to version
2.5.1+cpu
(only available on linux) instead of2.5.1
. When you attempt touv sync
then it fails with this message.Specifically, the lock file contains this block.
What Did I Expect to Happen
I expected uv to resolve the version to
2.5.1
and the wheels toWorkarounds
If I manually replace the
version
andwheels
properties with the correct values, thenuv sync
works as expected.The text was updated successfully, but these errors were encountered: