centos6.5 64位安装python的pil问题

发布于 2021-11-24 16:28:28 字数 2511 浏览 758 评论 2

[root@localhost Imaging-1.1.6]# python setup.py build_ext -i

running build_ext

--------------------------------------------------------------------

PIL 1.1.6 BUILD SUMMARY

--------------------------------------------------------------------

version       1.1.6

platform      linux2 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)

              [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]

--------------------------------------------------------------------

*** TKINTER support not available

--- JPEG support ok

--- ZLIB (PNG/ZIP) support ok

--- FREETYPE2 support ok

但是

[root@localhost Imaging-1.1.6]# python selftest.py 

*****************************************************************

Failure in example: _info(Image.open("Images/lena.jpg"))

from line #24 of selftest.testimage

Exception raised:

Traceback (most recent call last):

  File "./doctest.py", line 499, in _run_examples_inner

    exec compile(source, "<string>", "single") in globs

  File "<string>", line 1, in <module>

  File "./selftest.py", line 22, in _info

    im.load()

  File "PIL/ImageFile.py", line 180, in load

    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)

  File "PIL/Image.py", line 375, in _getdecoder

    raise IOError("decoder %s not available" % decoder_name)

IOError: decoder jpeg not available

1 items had failures:

   1 of  57 in selftest.testimage

***Test Failed*** 1 failures.

*** 1 tests of 57 failed.

还是报错

不知道怎么处理了

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

落墨 2021-11-24 22:19:48

经常看到你这样的收尾,这四个字是拿来炫的么,我解决了但是就是不告诉你怎么解决的意思?

月亮是我掰弯的 2021-11-24 20:19:25

已经解决

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文