-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Can't install torch_scatter wheel from index on OSX #9646
Comments
I think you need to do: |
Same outcome: error: Distribution `torch-scatter==2.1.2+pt25cpu @ registry+https://data.pyg.org/whl/torch-2.5.1+cpu.html` can't be installed because it doesn't have a source distribution or wheel for the current platform It looks like |
There are three equals signs in my version. |
(This is a consequence of PyTorch using the spec differently than it was intended, for details on the standards, see https://packaging.python.org/en/latest/specifications/version-specifiers/#local-version-identifiers) |
@zanieb - this would also be fixed by my “incomplete wheels” PR… |
After #9928, this would just be: [project]
name = "foo"
requires-python = ">=3.10"
dependencies = [
"torch",
"torch_scatter",
]
version = "0.1.0"
[tool.uv.sources]
torch = [{ index = "pytorch-cpu" }]
[tool.uv]
find-links = [
"https://data.pyg.org/whl/torch-2.5.1+cpu.html",
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true |
Fixed by #10046. |
It seems impossible to install
torch_scatter
CPU wheels usinguv
on OSX. I'm following the official installation instructions which require--find-links
to be passed.pyproject.toml
:Results in this error:
It seems that
uv
is picking uptorch-scatter==2.1.2+pt25cpu
instead of the (compatible)torch-scatter==2.1.2
wheel. pip-based installation works:$ uv pip install torch_scatter -f https://data.pyg.org/whl/torch-2.5.1+cpu.html # all good
I'm really looking for any
pyproject.toml
here that doesn't lead touv sync
choking on OSX.The text was updated successfully, but these errors were encountered: