pyg-lib

July 21, 2026 · View on GitHub

Docs Status Code Coverage Slack Contributing

Installation

We provide pre-built Python wheels for all major OS/PyTorch/CUDA combinations, see here. Each wheel supports CPython 3.10 through 3.14 via CPython's stable ABI. CI checks every repaired wheel with abi3audit --strict and tests it on each supported CPython version.

To install the wheels, simply run

pip install pyg-lib -f https://data.pyg.org/whl/torch-${TORCH}+${CUDA}.html

where

  • ${TORCH} should be replaced by either 2.11.0, 2.12.0, or 2.13.0
  • ${CUDA} should be replaced by either cpu, cu126, cu128, cu130, or cu132

The following combinations are supported:

PyTorch 2.13cpucu126cu128cu130cu132
Linux
Windows
macOS
PyTorch 2.12cpucu126cu128cu130cu132
Linux
Windows
macOS
PyTorch 2.11cpucu126cu128cu130
Linux
Windows
macOS

From nightly

Nightly wheels are provided for Linux and support CPython 3.10 through 3.14:

pip install pyg-lib -f https://data.pyg.org/whl/nightly/torch-${TORCH}+${CUDA}.html

From source

pip install ninja wheel
pip install --no-build-isolation git+https://github.com/pyg-team/pyg-lib.git