jump to content

Python Imaging Library (PIL)external link is a good module for image processing in Python, by Frederik Lundh.

It can be used to make cool products like Photoexternal link for Zope. However, installation in Windows can be a little bit tricky. Here are the steps I followed to make it work for me.

Please note that the software packages mentioned in this page might be upgraded and that will probably change the installation steps outlined here. If my installation also gets upgraded and if I find any significant differences with the new versions, I'll try to update this page.

  1. Download Zope binary. I used Zope 2.3.2
  2. Let us install it at C:\ZOPE232
  3. Download PIL from http://www.pythonware.com/downloads/pil-111-win32-py152.zipexternal link . Zope still uses Python 1.5.2, so I downloaded this version.
  4. Unzip the file to a temporary folder with folder structure intact
  5. Copy the folder pil to C:\ZOPE232\lib\python. We copy it here because this path is under Zope's python path.
  6. Copy _imaging.pyd to C:\ZOPE232\bin\lib\win32. _imagingtk.pyd is not useful because Tk libraries are not included in Zope's default installation.
  7. Copy PIL.pth to C:\ZOPE232\lib\python

That's it. Get and install Photo or Poll products and see if it works. For Photo product, you need to copy __init__.py that comes with it in the PIL sub folder over to C:\ZOPE232\lib\python\PIL\.

Dec 15, 2001 - Paul Browning has an update. For the Poll product, you need to put its own __init__.py into C:\ZOPE232\lib\python\PIL\.