Debian/Ubuntu
sudo apt-get install libjpeg62-dev sudo apt-get install python-imaging
採用源碼安裝
tar zxvf Imaging-1.1.6.tar.gz cd Imaging-1.1.6/sudo python setup.py install
decoder jpeg not available | |
---|---|
首先確認jpeg庫是否安裝 find / -name jpeglib.h 然後修改標頭檔 Imaging-1.1.6/libImaging 修改Jpeg.h, #include "jpeglib.h" 改為 #include "/usr/include/jpeglib.h" |