__change so that it builds against libjpeg6 and not libjpeg7 sed -i "s#JPEG_ROOT\ =\ None#JPEG_ROOT\ =\ \"/opt/libjpeg6\"#" setup.py