`
liseor
  • 浏览: 48344 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

PIL IOError: decoder jpeg not available

阅读更多

 

#IOError: decoder jpeg not available
#Fix:
#First remove your last install!
rm -rf /usr/lib/python2.4/site-packages/PIL
rm /usr/lib/python2.4/site-packages/PIL.pth
rm ~/Imaging-1.1.6

#Make sure you install at the libraries for both JPEG support and FreeType2:
yum install libjpeg
yum install libjpeg-devel
yum install freetype
yum install freetype-devel

#Get PIL again and do the install:
wget http://effbot.org/media/downloads/Imaging-1.1.6.tar.gz
tar -zxvf Imaging-1.1.6.tar
cd Imaging-1.1.6/
python setup.py build_ext -i

#Run the included test to make sure everything now works:
python selftest.py

#If everything worked do the real install:
$ python setup.py install
 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics