PIL称它具有“支持可用”但在保存文件时仍然提供IOError

时间:2012-05-16 20:17:02

标签: python ubuntu python-imaging-library virtualenv pip

我在ubuntu上通过virtualenv使用PIL,并使用pip安装。我已将setup.py文件更改为指向解码器库。 我在安装PIL时收到此消息:

PIL 1.1.7 SETUP SUMMARY

version       1.1.7
platform      linux2 2.6.7 (r267:88850, Aug 11 2011, 12:16:10)
              [GCC 4.6.1]

--- TKINTER support available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
--- LITTLECMS support available

version 1.1.7 platform linux2 2.6.7 (r267:88850, Aug 11 2011, 12:16:10) [GCC 4.6.1] --- TKINTER support available --- JPEG support available --- ZLIB (PNG/ZIP) support available --- FREETYPE2 support available --- LITTLECMS support available

但是当我保存文件时,我仍然会收到“IOError:decoder jpeg not available”和“IOError:'decoder zip not available'”消息。 发生了什么事?

1 个答案:

答案 0 :(得分:0)

我想我已经遇到过同样的问题。另外,我认为这与此重复 About the PIL Error -- IOError: decoder zip not available

  1. 下载PIL来源
  2. 下载zlib
  3. 将PIL源指向zlib
  4. 重建PIL