django CMS installation error

django CMS is a python based cms which can be used as intranet application.While installing it in python virtualenv with djangocms-installer, I came accross the error below.

This was tested in Ubuntu 12.04.4 LTS.

EnvironmentError: Pillow is not compiled with JPEG support, see 'Libraries installation issues' documentation section: http://djangocms-installer.readthedocs.org/en/latest/libraries.html

Steps below can be followed to fix this issue.

sudo apt-get install libjpeg-dev libfreetype6-dev zlib1g-dev
sudo pip uninstall pillow
sudo pip install pillow