You can build PIL with support for JPEG, Freetype, etc, on our CentOS6 servers without building those libraries locally in your home directory, and without setting environment variables like
First, download and extract the PIL tarball:
Next, edit PIL's
Next, build PIL with the following command:
Next, run the test to confirm that the build was successful:
Finally, install the library:
This answer is marked "community wiki".
Currently if you import PIL using python2.7 on your account it is pulling in the shared version and not the installed one,
This would account for why it is failing. I have ran
On your account and now it imports correctly,
However it now fails with,
To solve this I did 2 things, 1 created a symbolic link to the real file,
Than ran this line to load the lib path,
Selftest.py now runs but fails for missing files.
Installing PIL on a virtualenv (worked for me)
1 - pip install --no-install PIL (working on my virtualenv enviroment)
2 - edit the setup (inside the build directory of the virtual environment) in my case:
JPEG_ROOT = '/usr/lib64','/usr/include'
3 - pip install PIL
answered Oct 16 '12 at 14:04
PIL is already installed on WebFaction server with TrueType support. You can test like this:
answered Feb 04 '12 at 16:34