Skip to content
Andrei Novikov edited this page Jul 26, 2018 · 10 revisions

Install from PyPI

The simplest way to install pyclustering library:

$ pip3 install pyclustering

Manual installation from repository

The library can be compiled and manually installed on linux machine or windows. First of clone repository:

# get sources of the pyclustering library, for example, from repository
$ mkdir pyclustering
$ cd pyclustering/
$ git clone https://github.com/annoviko/pyclustering.git .

The core can be built for Linux using makefile and for Windows using Microsoft Visual Studio 2015 project. Make sure that your compiler support C++14. Following actions depends on your platform.

Build core ('ccore.so' library) using makefile for Linux (64-bit)

$ cd pyclustering/ccore
$ make ccore_x64

Build core ('ccore.so' library) using makefile for Linux (32-bit)

$ cd pyclustering/ccore
$ make ccore_x86

Build core ('ccore.dll' library) using Visual Studio project for Windows

  1. Open folder pyclustering/ccore;
  2. Open MSVS solution ccore.sln;
  3. Choose ccore project;
  4. Specify configuration of library (x64 or x86).
  5. Build ccore library;
Clone this wiki locally