我正在按照说明安装枕头:
http://pillow.readthedocs.org/en/latest/installation.html#mac-os-x-installation问题是我在使用python -c 'from PIL import Image时出错了。
python -c "from PIL import Image"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 53, in <module>
from PIL import _imaging as core
ImportError: dlopen(/Library/Python/2.7/site-packages/PIL/_imaging.so, 2):
Symbol not found: _jpeg_resync_to_restart
Referenced from: /Library/Python/2.7/site-packages/PIL/_imaging.so
Expected in: flat namespace
in /Library/Python/2.7/site-packages/PIL/_imaging.so消息说没有找到_jpeg_resync_to_restart,我在googled中尝试解决这个问题,如下所示:
brew安装Pillow:https://github.com/Homebrew/homebrew-python但是,什么也不起作用。有没有办法在小牛身上安装枕头?我使用Python2.7:默认的Python解释器。
发布于 2014-04-28 05:58:06
https://stackoverflow.com/questions/21867277
复制相似问题