I’m building my first Python program 🙂 However, I installed Python 3.2 instead of 2.7, as the newer version has TkInter included. Now I can’t find a way to use PIL in it.
I have read this question but as a total newcomer it’s not much help for me. I installed zlib and the libjpeg but couldn’t get any further when it comes to building the pil-py3k. I have no idea what I am supposed to do in here:
# --------------------------------------------------------------------
# Library pointers.
#
# Use None to look for the libraries in well-known library locations.
# Use a string to specify a single directory, for both the library and
# the include files. Use a tuple to specify separate directories:
# (libpath, includepath). Examples:
#
# JPEG_ROOT = "/home/libraries/jpeg-6b"
# TIFF_ROOT = "/opt/tiff/lib", "/opt/tiff/include"
#
# If you have "lib" and "include" directories under a common parent,
# you can use the "libinclude" helper:
#
# TIFF_ROOT = libinclude("/opt/tiff")
FREETYPE_ROOT = None
JPEG_ROOT = None
TIFF_ROOT = None
ZLIB_ROOT = None
TCL_ROOT = None
Is there an easier way to enable PIL with PNG and JPEG support for Python 3?
One option is to download an older version of Python but then there won’t be TkInter?
I wish you understand I’m a newcomer so please forgive me if I make any stupid questions. Python seems really cool! 😉 Any help is appreciated.
Unofficial PIL for Python 3.2 is the answer
http://www.lfd.uci.edu/~gohlke/pythonlibs/