Skip to content
Andrei Novikov edited this page Mar 24, 2017 · 10 revisions

The simplest way to install pyclustering library:

$ pip3 install pyclustering

The library can be compiled and manually installed on linux machine wherever you want:

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

# compile CCORE library (core of the pyclustering library).
$ cd pyclustering/ccore
$ make ccore

# return to parent folder of the pyclustering library
cd ../

# add current folder to python path
PYTHONPATH=`pwd`
export PYTHONPATH=${PYTHONPATH}

The library CCORE for 64-bit windows is distributed with pyclustering library so there is no need to re-built it. If you want to re-built CCORE library you can open CCORE Microsoft Visual Studio project (ccore.sln file) that is located in ccore/ folder and compile it.

Clone this wiki locally