2013-07-23 28 views
0

我不能在運行PIL支持JPEG和考慮其他的模塊蟒蛇...如何在沒有PIL的python2.7 win64中使用jpeg?

我有: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 

是有一個替代的PIL蟒蛇?我想從jpeg中讀取像素數據。沒有別的......但所有我發現的是PIL和imageMagic。首先沒有工作。第二 - 它不是Python模塊,需要安裝到系統一些程序...

有沒有簡單的從jpeg中讀取像素數據而無需編譯,安裝visual studio和其他程序?

+0

爲什麼不發佈代碼以查看使用pil的錯誤在哪裏? –

回答

0

嘗試PIL的pillow分叉。

你會在PyPi上找到二進制安裝程序,所以你不需要自己編譯任何東西。