title: Can't install Python Imaging Library using pip
body: <p>When trying to install Python Imaging Library(PIL) using PIP, the installation failed with the following error:</p>
  
  <pre><code>SyntaxError: invalid syntax
  Complete output from command python setup.py egg_info:
  Traceback (most recent call last):
  
  File "&lt;string&gt;", line 16, in &lt;module&gt;
  File "/tmp/pip_build_root/pil/setup.py", line 182
  print "--- using Tcl/Tk libraries at", TCL_ROOT
  </code></pre>
  
  <p><a href="https://github.com/mbi/django-simple-captcha/issues/28#issuecomment-14169250">Somebody</a> else faced the same issue but the provided solution was for a different library and didn't work for me. In the official mailing list there's an old entry(2003) which discusses the problem but instead of providing a solution, asked to downgrade PIL and providing a fix later (I prefer not to downgrade).</p>
  
  <p>The pip.log file is provided here: <a href="http://pastebin.com/YeBLmMBm">http://pastebin.com/YeBLmMBm</a></p>