For the benefit of the people from the future who are encountering this error and don t know why, I d like to post my findings. I hope to give a general understanding of what s gone wrong since the exact commands to fix it may be different on your machine than on my OSX Lion install.
首先,由于在可能的解决办法中很容易丢失,必须理解,错误信息在“<代码>”时是正确的。 Wrong JPEG的图书馆版本:图书馆80,打电话者预期<62/code>,或62
、70
和80
的其他组合。 这些数字与不同的校准版本相对应。 这里有两部移动式图书馆,有动态装满的jpeg图书馆和PIL(或Pillad)安装。 错误的意思是,贵图书馆的安装是用6.2版的头盔汇编的,但在装上实际共享的图书馆时,与8版连接。
定本是download,建造和安装你想要的校准版本(尽管以后版本在OSX狮子上更为容易):
wget http://www.ijg.org/files/jpegsrc.v8d.tar.gz
tar xzf jpegsrc*
cd jpeg-*
./configure
make
sudo make install
This should drop 2 files of note in /usr/local/ . Namely /usr/local/lib/libjpeg.8.dylib
and /usr/local/include/jpeglib.h
. Now we just have to get PIL (or Pillow) to use these two files at install time, and we re home free. I know there s a better way to do this, but the hack (as recommended by the PIL docs) is to edit the setup.py
file of the PIL distribution before you install it. You may get away with just setting JPEG_ROOT = libinclude( /usr/local )
near the top of setup.py
, though further directory manipulation may be necessary elsewhere in the file.
由于你走了这条道路,你必须保证,在你检验这是否与适当的图书馆连接之前,临时自治机构会进行充分的重建。 我使用了如下指挥系统:rm -rfbuilding && python setup。 安装代码>,以确保图书馆始终与目前测试的道路一新链接。
我很抱歉,这是一个令人痛心的答案,但令人非常沮丧的是,它尝试了所有其他复制和复制件;在那里找到了过去的解决办法,而且没有任何工作。 希望这一答案至少使少数民间人士在寻求简单解决办法时不浪费数小时。
Good Luck!