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
 

 

 

 

 

你可能感兴趣的:(python,ext)