PIL表示其具有“可用的支持"功能.但是在保存文件时仍然给出IOError [英] PIL says it has "support available" but still gives IOError when saving files

查看:95
本文介绍了PIL表示其具有“可用的支持"功能.但是在保存文件时仍然给出IOError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

PIL 1.1.7 SETUP SUMMARY

但是当我保存文件时,仍然收到"IOError:解码器jpeg不可用"和"IOError:'解码器zip不可用"消息. 发生什么事了?

解决方案

我认为我已经遇到了相同的问题.另外,我认为这是重复的 关于PIL错误-IOError:解码器zip不可用

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

I am using PIL through virtualenv on ubuntu, installed with pip. I have changed the setup.py file to point to the decoders libaries. I get this message when I install 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

But I still get "IOError: decoder jpeg not available" and "IOError: 'decoder zip not available'" messages when i'm saving a file. What is happening?

解决方案

I think I already experienced the same problem. Also, I think this is a duplicate of this About the PIL Error -- IOError: decoder zip not available

  1. Download PIL Source
  2. Download zlib
  3. Point PIL source to zlib
  4. Rebuild PIL

这篇关于PIL表示其具有“可用的支持"功能.但是在保存文件时仍然给出IOError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆