PIL The _imaging C module is not installed

上一篇 / 下一篇  2015-12-18 09:33:17 / 个人分类:python

按照 “将Texture Packer制作的.pvr.ccz和.plist文件还原为多个原图” 这篇博客中, 写的需要:安装PIL-1.1.7(python2.7.6对应的版本) ,我开始下了一个 PIL-1.1.7.win32-py2.7.exe 但是安装完成后, 出现 [cpp] view plaincopyC:\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

TAG:

fhhh_eyou的个人空间 引用 删除 fhhh_eyou   /   2015-12-18 12:54:52
学习,谢谢!
fhhh_eyou的个人空间 引用 删除 fhhh_eyou   /   2015-12-18 12:54:28
1
 

评分:0

我来说两句

日历

« 2024-04-27  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 36736
  • 日志数: 11
  • 建立时间: 2015-09-28
  • 更新时间: 2016-12-26

RSS订阅

Open Toolbar