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 
    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

你可能感兴趣的:(工具)