- 依赖库
yum install python-devel
yum install libjpeg libjpeg-devel zlib zlib-devel freetype freetype-devel lcms lcms-devel
yum install python-imaging
- 下载解压
wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz
tar xvfz Imaging-1.1.7.tar.gz
cd Imaging-1.1.7
- 修改配置
vim setup.py
TCL_ROOT = "/usr/lib64/" JPEG_ROOT = "/usr/lib64/" ZLIB_ROOT = "/usr/lib64/" TIFF_ROOT = "/usr/lib64/" FREETYPE_ROOT = "/usr/lib64/" LCMS_ROOT = "/usr/lib64/"
- 安装
python setup.py install
参考文献:http://www.cnblogs.com/jackzone/p/6516729.html
参考文献:http://www.cnblogs.com/ccdc/p/4069112.html
时间: 2024-10-24 02:30:57