标签:
安装PIL依赖JPEG、Freetype、LittleCMS,
首先安装这三个环境(第一至三步):
第一步:安装JPEG
http://www.ijg.org/files/jpegsrc.v8c.tar.gz
$ tar zxvf jpegsrc.v8.tar.gz
$ cd jpeg*
$ ./configure --enable-shared --enable-static
$ make
$ sudo make install
第二步:安装Freetype
http://downloads.sourceforge.net/project/freetype/freetype2/2.4.4/freetype-2.4.4.tar.bz2
$ tar zxvf freetype-2.4.4.tar.bz2
$ cd free*
$ ./configure --enable-shared --enable-static
$ make
$ sudo make install
第三步:安装LittleCMS
http://downloads.sourceforge.net/project/lcms/lcms/1.19/lcms-1.19.tar.gz
$ tar xzf lcms-1.19.tar.gz
$ cd lcms*
$ ./configure --enable-shared --enable-static
$ make
$ sudo make install
第四步:安装PIL
http://effbot.org/downloads/Imaging-1.1.7.tar.gz
$ cd Imaging-1.1.7
$ sudo python setup.py install
转载请注明出处,谢谢!
标签:
原文地址:http://www.cnblogs.com/xiaozhiblog/p/5613226.html