PIL模块/无法初始化图像API

时间:2012-04-18 18:18:49

标签: python macos python-2.7

我正在运行OSX和Python 2.7。我的应用程序需要PIL模块,当我尝试安装它时会出现此错误。

我已经尝试了几次安装,但似乎没有什么可以做到的。我如何让它工作?

WARNING  2012-04-18 18:15:54,222 dev_appserver.py:3394] Could not initialize images API; you are likely missing the Python "PIL" module. 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

1 个答案:

答案 0 :(得分:0)

答案是卸载所有内容然后使用pip install pil。