带图像的PIL ImportError

时间:2014-08-18 00:23:53

标签: python python-imaging-library

我在使用PIL导入图片时遇到问题。我安装了枕头。但是当我尝试从PIL导入图像时,会出现以下错误。

>>> from PIL import Image

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/Pillow-2.5.2-py2.7-macosx-10.5-i386.egg/PIL/Image.py", line 61, in <module>
    from PIL import _imaging as core
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/Pillow-2.5.2-py2.7-macosx-10.5-i386.egg/PIL/_imaging.so, 2): Symbol not found: _TIFFClientOpen
  Referenced from: /Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/Pillow-2.5.2-py2.7-macosx-10.5-i386.egg/PIL/_imaging.so
  Expected in: flat namespace
 in /Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/Pillow-2.5.2-py2.7-macosx-10.5-i386.egg/PIL/_imaging.so

0 个答案:

没有答案