hatshufflepy
Cython wrapper for the hat_shuffle_implementation mixnet.
Python
The module requires Python 2.7.
Installing hatshufflepy
From PyPI
- Install Dependencies:
sudo apt-get install libgmp3-dev
pip install cython >= 0.22.1
- Install hatshufflepy
pip install hatshufflepy
From source
- Install dependencies:
sudo apt-get install build-essential git libboost-all-dev cmake libgmp3-dev libssl-dev libprocps4-dev pkg-config python-pip
pip install cython setuptools
- Install hatshufflepy
sudo python setup.py install
ImportError: libhatshuffle.so
Set LD_LIBRARY_PATH
Add to .bashrc
:
export LD_LIBRARY_PATH=/path/to/python/site-packages/hatshufflepy
or set an environmental variable for the current session
export LD_LIBRARY_PATH=/path/to/python/site-packages/hatshufflepy
You can find your path to site-packages with the command:
python -m site
So far we have tested these only on Ubuntu 16.04 LTS.