pytorch_scatter icon indicating copy to clipboard operation
pytorch_scatter copied to clipboard

Installation instructions for uv

Open nlgranger opened this issue 5 months ago • 0 comments

I struggled to properly specify torch-scatter (and -cluster) as dependencies with the uv tool. In particular, your package index uses a non-standard flat layout.

The solution I came up with for the pyproject.toml file is:

dependencies = [
  "torch-cluster",
  "torch-scatter",
]

[[tool.uv.index]]
name = "pyg"
url = "https://data.pyg.org/whl/torch-2.7.0+cu126.html"
ignore-error-codes = [403]
format = "flat"

[tool.uv.sources]
torch-scatter = { index = "pyg" }
torch-cluster = { index = "pyg" }

May I suggest you check this and add it to the README to healp other people?

nlgranger avatar Jul 22 '25 09:07 nlgranger