Today's test, found no PIL error, hit Pip install PIL and did not succeed, see many blog said typing this command success may also encounter other problems in the run, so it is more reliable installation.
1. Download wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz
2, Decompression: Tar xvfz imaging-1.1.7.tar.gz
Download and unzip successfully, to extract the directory, find imaging-1.1.7/setup.py This file, modify the following lines of code (the default tcl_root is set to none, here to upload the path to the system library):
Tcl_root = "/usr/lib64/"
Jpeg_root = "/usr/lib64/"
Zlib_root = "/usr/lib64/"
Tiff_root = "/usr/lib64/"
Freetype_root = "/usr/lib64/"
Lcms_root = "/usr/lib64/"
3, before the installation of the check: Python setup.py build_ext-i
Found the problem, the search needs to install the class library, the method is as follows:
Yum Install Python-devel
Yum install libjpeg libjpeg-devel zlib zlib-devel freetype freetype-devel lcms lcms-devel
Yum Install python-imaging
5. Installation:
Python setup.py Install
After installation, you can use it!!
Centos installation Python PIL module (practice)