关于PIL错误-IOError:解码器zip不可用 [英] About the PIL Error -- IOError: decoder zip not available

查看:91
本文介绍了关于PIL错误-IOError:解码器zip不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了:

IOError: decoder zip not available

当我尝试绘制图像并将其保存到PIL中的jpeg中时.关于如何解决这个问题有什么想法吗? 过去,在查看/上传图像时,PIL对我来说效果很好.

when I try to draw an image and save to a jpeg in PIL. Any thoughts on how to resolve this? PIL has worked fine for me in the past, when it comes to viewing/uploading images.

推荐答案

可能只需要zip解码器来保存jpeg.我认为我需要在OS X中按照以下步骤预览jpeg.

It likely only needs the zip decoder to save the jpeg. I think I needed to follow these steps in OS X to preview jpegs.

这可能意味着您需要:

  • Download the PIL source.
  • Download the zlib library.
  • Point the PIL source to the zlib library.
  • Build PIL.

这篇关于关于PIL错误-IOError:解码器zip不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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