0

我无法在 PIL 中运行 jpeg 支持并考虑 python 的另一个模块......

我有:Win7 x64 + Python 2.7 x64 和 PIL 说:

Traceback (most recent call last):
  File "D:\arduino\pde\freezelight_printer\freezelight_printer_computer.py", line 43, in <module>
    print im.getpixel((x,y))
  File "C:\Python27\lib\site-packages\PIL\Image.py", line 949, in getpixel
    self.load()
  File "C:\Python27\lib\site-packages\PIL\ImageFile.py", line 189, in load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "C:\Python27\lib\site-packages\PIL\Image.py", line 385, in _getdecoder
    raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available

python中有替代的PIL吗?我想从 jpeg 读取像素数据。没有别的......但我发现的只是 PIL 和 imageMagic。首先没有工作。其次 - 它不是 python 模块,需要安装到系统一些程序......

从 jpeg 读取像素数据而无需编译、安装 Visual Studio 和其他程序有什么简单的方法吗?

4

1 回答 1

0

试试PIL的叉。

你会在 PyPi 上找到二进制安装程序,所以你不需要自己编译任何东西。

于 2013-07-23T13:24:19.313 回答