Home | Mirror | Search | 雜文 | ITEYE 博客 | OSChina 博客 | 51CTO 博客

9.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"

comments powered by Disqus