Step 1 - install compiler and compile libSBML with Python bindings. provided libSBML packages do not contain Python bindings. Therefore we have to compile it manually. First, install compiler.

apt-get install build-essential
apt-get install python2.7-dev
apt-get install libxml2-dev
apt-get install swig

Dowload the source code from

cd into the unzipped directory of libsbml source code.

cd libSBML-5.9.0-Source/
./configure --with-python
make install

Make libSBML accessible to Python. The actual path may differ.

export PYTHONPATH=/usr/local/lib64/python2.7/site-packages/

Step 2 - install networkx library

NetworkX library is available as Python egg. Install setuptools to gain ability to install Python eggs.

apt-get install python-setuptools

Download NetworkX from and then install using the following command:

easy_install networkx-1.8.1-py2.7.egg

Step 3 - install pylevenshtein and xlrd libraries

Download pylevenshtein from Extract it!

Install pylevenshtein:

cd python-Levenshtein-0.10.1
python build
python install

Download xlrd from Extract it!

Install xlrd:

cd xlrd-0.9.2
python build
python install

Step 4 - install pyparsing and matplotlib

apt-get install python-pyparsing
apt-get install python-matplotlib

Step 5 - run ModeRator

cd moderator-gtk-257/src/