Install Modules

lxml

apt-get install libxslt1-dev
pip install lxml

mxDateTime

Install mxDateTime manually (stackoverflow, Can’t install egenix-mx-base on Django production VPS) (can’t find a way to install this using easy_install or pip):

Make sure the python development libraries are installed:

apt-get install python-dev

Activate your python virtual environment...

Build and install:

cd ~/Downloads/python/
wget http://downloads.egenix.com/python/egenix-mx-base-3.1.3.tar.gz
cd ~/src
tar -xzvf ~/Downloads/python/egenix-mx-base-3.1.3.tar.gz
cd egenix-mx-base-3.1.3
python setup.py install

MySQL

...for CentOS:

yum install mysql-devel

...for Debian:

apt-get install libmysqlclient15-dev

...then install the module:

pip install MySQL-python==1.2.3

PIL - Python Imaging Library

Python Imaging Library (PIL and pillow)

Pychart

pip install -e bzr+http://download.gna.org/pychart/bzr-archive#egg=pychart

pyodbc

sudo apt-get install pyodbc
sudo apt-get install unixodbc-dev
sudo apt-get install g++
pip install pyodbc

pysqlite/pysqlite2

Requires the python development kit and GCC:

sudo aptitude install libsqlite3-dev
pip install pysqlite

psycopg2

Install mxDateTime (see above).

Install the PostgreSQL development libraries:

aptitude install libpq-dev

Install psycopg2:

pip install psycopg2

ReportLab

Install python development libraries:

apt-get install python-dev

Install ReportLab:

pip install reportlab==2.5

Twisted

Install the python development libraries:

sudo apt-get install python-dev

Then install twisted:

pip install twisted