Install
=======

- Python version >= 3.7
- PyTorch version >= 1.7.1

Please follow the instructions here to install PyTorch (https://github.com/pytorch/pytorch#installation).

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

.. code-block:: bash

    pip install cogdl


Install from source via:

.. code-block:: bash

    pip install git+https://github.com/thudm/cogdl.git


Or clone the repository and install with the following commands:

.. code-block:: bash

    git clone git@github.com:THUDM/cogdl.git
    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 (https://github.com/rusty1s/pytorch_geometric/#installation).
