Installing ALiPy

Here's an introduction to install alipy. We will first introduce the dependencies of alipy, then two different installation ways (install by pip or build from source) will be presented.

ALiPy requires

Python dependency

python >= 3.4
        

Basic Dependencies

numpy
scipy
scikit-learn
matplotlib
prettytable
            

Optional dependencies

cvxpy
            

Note that, the basic dependencies must be installed, and the optional dependencies are required only if users need to involke KDD'13 BMDR and AAAI'19 SPAL methods in alipy. (cvxpy will not be installed through pip)

Cvxpy is an optimization package used to solve the QP problem in alipy. However, this package needs VC++ 14 environment which may not be installed for all users. In this case, the users who need to involke KDD'13 BMDR and AAAI'19 SPAL methods should install cvxpy manually before using them.

ALiPy Installation

Install alipy from PyPI (recommended):

sudo pip install alipy
        

or pip install in home directory:

pip install --user alipy
        

or pip install from github repository for latest source:

pip install git+https://github.com/NUAA-AL/alipy.git
        

Alternatively: install ALiPy from the GitHub source.

Before started, please ensure the dependencies are installed properly.

First, clone alipy to your local directory.

Then, cd to the ALiPy folder and run the install command:

cd ALiPy
sudo python setup.py install
            

or to build and install from souce in your home directory:

python setup.py install --user
        

or To build and install from souce for all users on Unix/Linux:

python setup.py build
        

Copyright © 2018, alipy developers (BSD 3 License).