vtraag / leidenalg

Implementation of the Leiden algorithm for various quality functions to be used with igraph in Python.
GNU General Public License v3.0
596 stars 78 forks source link

name 'configuration' is not defined #64

Closed JinJieGan closed 3 years ago

JinJieGan commented 3 years ago

when i used 'pip install leidenalg' and try to import it: image anybody help me ?

vtraag commented 3 years ago

This is presumably a problem with how you installed python-igraph. Could you show us how you installed that, and which version you installed? Additionally, you seem to be using Anaconda. You can simply install both python-igraph and leidenalg from the conda-forge channel. Is there any particular reason why you are installing using pip?

JinJieGan commented 3 years ago

thx, I tried pip uninstall leidenalg pip uninstall cairocffi, andpip install leidenalg,it works. Actually, i don't know how to install both python-igraph and leidenalg from the conda-forge channel.

vtraag commented 3 years ago

If you are using Anaconda, you can install from the conda-forge channel simply using conda install -c conda-forge python-igraph leidenalg. If you prefer to use the graphical user interface (Anaconda Navigator), please see further instructions in Anaconda's documentation.