-
Notifications
You must be signed in to change notification settings - Fork 253
Installing
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
- Open folder pyclustering/ccore;
- Open MSVS solution ccore.sln;
- Choose ccore project;
- Specify configuration of library (x64 or x86).
- Build ccore library;