【问题标题】:PIL Module / Could not initialize images APIPIL 模块 / 无法初始化图像 API
【发布时间】:2012-04-18 18:18:48
【问题描述】:

我正在运行 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

【问题讨论】:

    标签: python macos python-2.7


    【解决方案1】:

    这个问题的答案是卸载所有东西,然后使用 pip install pil。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-03
      • 2012-11-08
      • 2012-08-22
      • 2016-01-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多