Skip to content

Installation instructions for uv #492

@nlgranger

Description

@nlgranger

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions