适用于 Windows 或替代方案的 Python 3.2 的 PIL? [英] PIL for Python 3.2 on Windows or alternatives?

查看:22
本文介绍了适用于 Windows 或替代方案的 Python 3.2 的 PIL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

我已经阅读了这个问题,但作为一个新手,它对我.我安装了 zlib 和 libjpeg,但在构建 pil-py3k 时无法进一步.我不知道我应该在这里做什么:

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

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

Is there an easier way to enable PIL with PNG and JPEG support for Python 3?

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

One option is to download an older version of Python but then there won't be TkInter?

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

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.

推荐答案

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

Unofficial PIL for Python 3.2 is the answer http://www.lfd.uci.edu/~gohlke/pythonlibs/

这篇关于适用于 Windows 或替代方案的 Python 3.2 的 PIL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆