Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>the simplest way should be the following:</p> <pre><code>sudo apt-get install python-imaging </code></pre> <p>if you need to install in a virtualenv, or want the absolute latest version use pip. First install some stuff pil needs, then run the pip install:</p> <pre><code>sudo apt-get install libjpeg-dev libjpeg62 libjpeg62-dev zlib1g-dev libfreetype6 libfreetype6-dev pip install PIL </code></pre> <p>To respond to the comment below. If you take a fresh installation of ubuntu 12.04 and run <code>apt-get install python-imaging</code> you will have PIL installed correctly on your system. on my ubuntu 12.04 box when I run selftest.py I get the following output:</p> <pre><code>-------------------------------------------------------------------- PIL 1.1.7 TEST SUMMARY -------------------------------------------------------------------- Python modules loaded from /usr/lib/python2.7/dist-packages/PIL Binary modules loaded from /usr/lib/python2.7/dist-packages/PIL -------------------------------------------------------------------- --- PIL CORE support ok *** TKINTER support not installed --- JPEG support ok --- ZLIB (PNG/ZIP) support ok --- FREETYPE2 support ok --- LITTLECMS support ok -------------------------------------------------------------------- </code></pre> <p>PNG support which you are looking for shows as ok. I suspect that your python installation is probably in some sort of corrupt state. Maybe the symlinking you mentioned or other attempts at installing this package has corrupted your installation. There are three recommendations I can give for correcting this situation</p> <p><strong>Solutions</strong></p> <ol> <li>re-install ubuntu on the machine. This should definitely work.</li> <li>create a python <a href="http://pypi.python.org/pypi/virtualenv">virtualenv</a> and then install PIL there using pip. This might work depending on how corrupt the base python system is. The idea here is that virtualenv by default will create a new python environment that only has the standard library in it.</li> <li>repair your python installation. You could try <code>apt-get purge python-imaging</code> and then re-install the python-imaging package.</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload