解决PIL “decoder jpeg not available” 和 “ImportError: The _imaging C module is not installed”的问题
2014-09-19 15:49
741 查看
在python安装Image后发现只要加载ImageFont就出现 The _imaging C module is not installed 的提示,经百度谷歌搜索后。
发现WIN系统的人都会使用网上已经编译好的一个包。而LINUX下回答都很模糊。
基本如下处理即可(CENTOS 5 64bit)
以上安装基本环境后。
wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz tar zxvf Imaging-1.1.7.tar.gz
进去后
vi setup.py
查找
FREETYPE_ROOT = None
ZLIB_ROOT =None
替换为
ZLIB_ROOT = ("/usr/lib64/", "/usr/include")
FREETYPE_ROOT = ("/usr/lib64/",
"/usr/include/freetype2/freetype")
保存 退出后,
python setup.py build_ext -i
python setup.py build
python setup.py install
基本上就OK了。想知道是否OK
就python后输入
import ImageFont
如果不出错就O了。。
转自:http://blog.csdn.net/shellshine/article/details/8286210
发现WIN系统的人都会使用网上已经编译好的一个包。而LINUX下回答都很模糊。
基本如下处理即可(CENTOS 5 64bit)
yum install libjpeg libjpeg-devel zlib zlib-devel freetype freetype-devel lcms lcms-devel
以上安装基本环境后。
wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz tar zxvf Imaging-1.1.7.tar.gz
进去后
vi setup.py
查找
FREETYPE_ROOT = None
ZLIB_ROOT =None
替换为
ZLIB_ROOT = ("/usr/lib64/", "/usr/include")
FREETYPE_ROOT = ("/usr/lib64/",
"/usr/include/freetype2/freetype")
保存 退出后,
python setup.py build_ext -i
python setup.py build
python setup.py install
基本上就OK了。想知道是否OK
就python后输入
import ImageFont
如果不出错就O了。。
转自:http://blog.csdn.net/shellshine/article/details/8286210
相关文章推荐
- 解决PIL “decoder jpeg not available” 和 “ImportError: The _imaging C module is not installed”的问题
- PIL写入字体出现“ImportError: The _imagingft C module is not installed”的解决方法
- PIL写入字体出现ImportError:The _imagingft C module is not installed 错误的解决方法
- Python安装Imaging报错:The _imaging C module is not installed问题解决方法
- window下Django第三方APP调用PIL生成验证码出现ImportError: The _imagingft C module is not installed解决
- Python 的PIL,可以解决ImportError The _imagingft C module is not installed
- ImportError:The _imagingft C module is not installed 错误的解决方法
- Pillow-PIL的完全Fok替代库--完美解决报错The _imagingft C module is not installed的解决方案
- Python安装Imaging报错:The _imaging C module is not installed问题解决方法
- 解决Windows下PIL库的"The _imagingft C module is not installed"错误
- Python图片处理PIL/pillow/生成验证码/出现KeyError: 和The _imagingft C module is not installed
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed
- Python图片处理PIL/pillow/生成验证码/出现KeyError: 和The _imagingft C module is not installed
- ImportError: The _imagingft C module is not installed
- ImportError: The _imagingft C module is not installed
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed
- Python3下的ssl certificate:Can't connect to HTTPS URL because the SSL module is not available.问题解决
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed
- ImportError: The _imagingft C module is not installed
- centos下安装pillow报ImportError: The _imagingft C module is not installed的解决方案