在apache上报错“The _imaging C module is not installed”
2015-06-06 17:40
471 查看
原文链接:http://www.cnblogs.com/zhaojia-dream/p/4556999.html
我的环境是python2.7.8、django1.6.4、apache2.2。
问题:在django自带的runserver环境下没有任何报错,但是配置在apache上出现了 “The _imagingft C module is not installed”的报错。找了很久原来是因为
import Image的时候 PIL包在window底下的貌似是二进制的类似问题,需要下载Pillow的对应whl文件进行修补,下载链接:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
里面找到Pillow的对应whl文件,然后pip install wheel下载wheel,pip install /yourpath/file.whl进行安装,注意在此之前必须先装PIL在安装对应的Pillow的whl文件。
最重要的一点,必须要把项目中的 import Image 改成 from PIL import Image,否则会报其他的错误。
然后Ok,TMD终于解决了。
转载于:https://www.cnblogs.com/zhaojia-dream/p/4556999.html
相关文章推荐
- python apache下出现The _imaging C module is not installed
- 解决Windows下PIL库的"The _imagingft C module is not installed"错误
- window下Django第三方APP调用PIL生成验证码出现ImportError: The _imagingft C module is not installed解决
- The _imagingft C module is not installed
- ImportError: The _imagingft C module is not installed
- python PIL ImportError: The _imagingft C module is not installed
- python__The _imaging C module is not installed
- The _imaging C module is not installed
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed
- The _imaging C module is not installed
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed
- ImportError: The _imagingft C module is not installed
- ImportError:The _imagingft C module is not installed 错误的解决方法
- 关于captcha使用The _imagingft C module is not installed的错误处理
- The _imaging C module is not installed 转载
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed
- PIL “The _imagingft C module is not installed” 错误补救
- The _imagingft C module is not installed
- Jetson TX2 下安装pillow 报ImportError: The _imagingft C module is not installed方案
- Windows系统下,报错The _imagingft C module is not installed