• Python version >= 3.7

  • PyTorch version >= 1.7.1

Please follow the instructions here to install PyTorch (

When PyTorch has been installed, cogdl can be installed using pip as follows:

pip install cogdl

Install from source via:

pip install git+

Or clone the repository and install with the following commands:

git clone
cd cogdl
pip install -e .

If you want to use the modules from PyTorch Geometric (PyG), you can follow the instructions to install PyTorch Geometric (