1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OS X 10.9 Mavericks にアップデートして GAE で使う PIL を復活

1
Last updated at Posted at 2013-10-27

dev_appserver.py を起動してこんな warning が出る場合

WARNING  2013-10-27 01:13:08,067 api_server.py:332] Could not initialize images API; you are likely missing the Python "PIL" module.

環境によって違うとは思うのですが、僕の場合、
http://stackoverflow.com/questions/19532125/cant-install-pil-after-mac-os-x-10-9
を参考に

xcode-select --install # zlib をインストール?
sudo easy_install pip
sudo pip install PIL
ln -s  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11 /usr/local/include/X11

PIL インストールできても ZLIB サポートが使えない状態だと gif/png がうまく扱えないので

    --- ZLIB (PNG/ZIP) support available

ちゃんとこうなってるか要確認

    *** ZLIB (PNG/ZIP) support not available
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?