After installing image in Python, I found that as long as imagefont is loaded, the _ imaging c module is not installed prompt is displayed, which was searched by Baidu Google.
It is found that all win system users use a package that has been compiled online. The answers in Linux are vague.
Perform the following operations (centos 5 64bit)
yum install libjpeg libjpeg-devel zlib zlib-devel freetype freetype-devel lcms lcms-devel
After installing the basic environment.
Wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz
Tar zxvf Imaging-1.1.7.tar.gz
After entering
VI setup. py
Search
Freetype_root = none
Zlib_root = none
Replace
Zlib_root = ("/usr/lib64/", "/usr/include ")
Freetype_root = ("/usr/lib64 /",
"/Usr/include/FreeType2/FreeType ")
After saving and exiting,
Python setup. py build_ext-I
Python setup. py build
Python setup. py install
Basically, it is OK. Want to know if OK
Enter
Import imagefont
If there is no error, it will be o ..
From: http://blog.csdn.net/shellshine/article/details/8286210
Solve the Pil "decoder JPEG not available" and "importerror: The _ imaging c module is not installed" Problems