Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

10.8. Python Imaging Library

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"