Installation#

It is recommended to use pip for installation. Please make sure the latest version is installed, as FedGraph is updated frequently:

pip install fedgraph            # normal install
pip install --upgrade fedgraph  # or update if needed

Alternatively, you could clone and run setup.py file:

git clone https://github.com/FedGraph/fedgraph.git
cd fedgraph
pip install .

Required Dependencies:

  • python>=3.8

  • ray

  • tensorboard

Note on PyG and PyTorch Installation: FedGraph depends on torch and torch_geometric (including its optional dependencies). To streamline the installation, FedGraph does NOT install these libraries for you. Please install them from the above links for running FedGraph:

  • torch>=2.0.0

  • torch_geometric>=2.3.0