PIL default installation using PIP doesn’t come with JPEG and ZLIB support in Fedora Core 17. So, that why you sometimes facing problem when doing image processing using PIL in Fedora. The solution is easy:
1. Uninstall PIL
1 | pip uninstall PIL |
2. Install depedency packages
1 | sudo yum install libjpeg libjpeg-devel |
3. Make Symbolic Link if you are using 64-bit system
1 2 3 | sudo ln -s /usr/lib64/libjpeg.so /usr/lib/ sudo ln -s /usr/lib64/libfreetype.so /usr/lib/ sudo ln -s /usr/lib64/libz.so /usr/lib/ |
4. Install PIL with Zlib and JPEG support
1 | pip install -U PIL |
And you should see successful results like this :