sudo rm -Rf build
JPEG_ROOT = None
and replace it withJPEG_ROOT = libinclude('/usr/local/lib')
sudo python setup.py build
python selftest.py
and not get any errors related to JPEGsudo python setup.py install
python selftest.py
again after installation and you should see something along the lines:python
to get into python interpreter then enter following commands: