In short, for Unix: pip install leidenalg. For Windows: download the binary installers. Alternatively, you can install from Anaconda (channels conda-forge or vtraag). For Unix like systems it is ...