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

问题描述:

我正在运行OSX和Python 2.7。我有的应用程序需要PIL模块,当我尝试安装它时会出现此错误。PIL模块/无法初始化图像API

我已经尝试了几次安装,但没有任何东西似乎能做到这一点。我如何得到这个工作?

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 
+0

我也有同样的问题。 – juanitofatas 2012-05-31 20:25:25

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