Skip to content
Andrei Novikov edited this page Jul 26, 2018 · 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_x64 # compile for 64-bit platform
# make ccore_x86 # compile for 32-bit platform
# make ccore # compile for both versions - make sure you have got extension for g++ compiler to do that

# 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