PIL:自检失败,但包显示状态良好?
我已经安装了 PIL 和所需的库(我认为是这样)。在安装过程中它显示
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
--- LITTLECMS support available
但是,当我运行 selftest.py 时,我得到这个:
*** PIL CORE support not installed
*** TKINTER support not installed
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
*** FREETYPE2 support not installed
*** LITTLECMS support not installed
即它没有检测到 PIL CORE、FREETYPE2 和 LITTLECMS。
我使用 python 2.6.5 在 CentOS 6.0 上安装了以下软件包,
libjpeg libjpeg-devel zlib zlib-devel freetype freetype-devel lcms lcms-devel
PIL 是通过 pip install PIL 安装的。然而,自测试是从官方 PIL 网站的源代码运行的。
有什么想法吗?
I have PIL installed with the required libraries (so I think). During installation it shows
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
--- LITTLECMS support available
However, when I run selftest.py, I get this:
*** PIL CORE support not installed
*** TKINTER support not installed
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
*** FREETYPE2 support not installed
*** LITTLECMS support not installed
i.e. it's not detecting PIL CORE, FREETYPE2 and LITTLECMS.
I installed the following packages on CentOS 6.0 using python 2.6.5
libjpeg libjpeg-devel zlib zlib-devel freetype freetype-devel lcms lcms-devel
PIL was installed with pip install PIL. However, the selftest was run from a source code from the offical PIL website.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在运行
selftest.py
或Tests\run.py
之前,尝试使用setup.py build_ext -i
在源目录中就地构建 C 扩展>。Try building the C extensions in-place in the source directory with
setup.py build_ext -i
before runningselftest.py
orTests\run.py
.