PIL for Python 3.2在Windows上还是其他选择?

Mar*_*ine 3 python tkinter python-3.x

我正在构建我的第一个Python程序:)但是,我安装了Python 3.2而不是2.7,因为新版本已TkInter包含.现在我找不到在其中使用PIL的方法.

我已经读过这个问题,但作为一个全新的人,对我来说没什么用.我安装了zlib和libjpeg但是在构建pil-py3k时无法进一步了解.我不知道我应该在这做什么:

# --------------------------------------------------------------------
# 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
Run Code Online (Sandbox Code Playgroud)

是否有更简单的方法来启用PIL,支持Python 3的PNG和JPEG?

一种选择是下载旧版本的Python,但是不会有TkInter?

我希望你明白我是新人,所以如果我提出任何愚蠢的问题,请原谅我.Python看起来很酷!;)任何帮助表示赞赏.

小智 8

Python 3.2的非官方PIL是答案 http://www.lfd.uci.edu/~gohlke/pythonlibs/