For Unix like systems it is possible to install from source. For Windows this is
overly complicated, and you are recommended to use the binary wheels. There are
two things that are needed by this package: the igraph
C core library and
the python-igraph python package. For both, please see http://igraph.org.
Make sure you have all necessary tools for compilation. In Ubuntu this can be
sudo apt-get install build-essential, please refer to the
documentation for your specific system. Make sure that not only
installed, but also
g++, as the
leidenalg package is programmed in
You can check if all went well by running a variety of tests using
There are basically two installation modes, similar to the python-igraph package
itself (from which most of the
Ccore library is installed yet. The
Ccore library of igraph that is provided within the
leidenalgpackage is compiled.
Ccore library is already installed. In this case, you may link dynamically to the already installed version by specifying
--no-pkg-config. This is probably also the version that is used by the igraph package, but you may want to double check this.
In case the
python-igraph package is already installed before, make sure that
both use the same versions (at least the same minor version, which should be