Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When i install pip install PIL then i get this

   *** TKINTER support not available
    *** JPEG support not available
    *** ZLIB (PNG/ZIP) support not available
    *** FREETYPE2 support not available
    *** LITTLECMS support not available

I have all the libraries and i tried this as well

sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/
sudo ln -s /usr/lib64/ /usr/lib/

how can i install all of the above with pip on centos

share|improve this question

migrated from Dec 19 '12 at 15:54

This question came from our site for professional and enthusiast programmers.

Make sure the libs you need are in the search path. – iMom0 Dec 19 '12 at 14:50
How did you install python? In my experience with package managers, sometimes you need to explicitly install tkinter. I think it's sudo apt-get install python-tk on Ubuntu -- Don't know about centos though. (and this only addresses 1 of your dependency issues ...) – mgilson Dec 19 '12 at 14:51
up vote 7 down vote accepted

You need the required headers from the corresponding libraries: libjpeg, libpng, and others.

Usually, you will need the dev packages for those libraries to have the headers.

Nevertheless, installing PIL is usually pretty complicated as it often fails to detect the libraries. You should do pip install pillow instead. pillow is an installer for PIL, which finds libraries more easily.

share|improve this answer
I have those so installed but how can PIL find them – user1914461 Dec 19 '12 at 15:04
@user1914461 Did you try installing pillow as I suggested? – Thomas Orozco Dec 19 '12 at 15:08
Thanks buddy , i first removed PIL and pillow and then again installed pillow only and everthing is ok now , thanks – user1914461 Dec 19 '12 at 15:12
@user1914461 : ) – Thomas Orozco Dec 19 '12 at 15:15

You must log in to answer this question.