PIL The _imaging C module is not installed

按照 “将Texture Packer制作的.pvr.ccz和.plist文件还原为多个原图” 这篇博客中,

写的需要:安装PIL-1.1.7(python2.7.6对应的版本) ,我开始下了一个 PIL-1.1.7.win32-py2.7.exe 但是安装完成后,

出现

C:\Users\PC3\Desktop\te>C:\Users\PC3\Desktop\te\Script1.py aa
Traceback (most recent call last):
  File "C:\Users\PC3\Desktop\te\Script1.py", line 70, in <module>
    gen_png_from_plist( plist_filename, png_filename )
  File "C:\Users\PC3\Desktop\te\Script1.py", line 37, in gen_png_from_plist
    rect_on_big = big_image.crop(box)
  File "C:\Python27\lib\site-packages\PIL\Image.py", line 763, in crop
    self.load()
  File "C:\Python27\lib\site-packages\PIL\ImageFile.py", line 164, in load
    self.load_prepare()
  File "C:\Python27\lib\site-packages\PIL\PngImagePlugin.py", line 381, in load_prepare
    ImageFile.ImageFile.load_prepare(self)
  File "C:\Python27\lib\site-packages\PIL\ImageFile.py", line 231, in load_prepare
    self.im = Image.core.new(self.mode, self.size)
  File "C:\Python27\lib\site-packages\PIL\Image.py", line 37, in __getattr__
    raise ImportError("The _imaging C module is not installed")
ImportError: The _imaging C module is not installed

错误。

解决方法:

去这个网站 https://pypi.python.org/pypi/Pillow/2.1.0#id2 下一个 Pillow-2.1.0.win-amd64-py2.7.exe (md5) 64位版本的即可。


参考:

http://www.cnblogs.com/myx/p/The_imaging-C-module-is-not-installed.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值