Forums

Python Imaging Library

I'm trying to use the Python Imaging Library.

In the IPython 2.7 Console, I tried doing import PIL, then took a look with dir(PIL) and saw this output:

['builtins', 'doc', 'file', 'name', 'package', 'path']

If I examine PIL.file, it shows:

'/usr/local/lib/python2.7/dist-packages/PIL/PIL/_init_.pyc'

How do I get access to the PIL objects such as Image?

from PIL import Image

should work?

That did work! Thank you very much :)