Quantcast
Channel: #daiizメモ
Viewing all articles
Browse latest Browse all 468

【GAE/Python】ImportError: No module named PIL._imaging

$
0
0

Pythonで画像処理するライブラリ PIL (Pillow) を入れて,ローカルで動かそうとしているところ.Macでローカルサーバを立ち上げたところ表題のエラーがでた.

from PIL import Image

の箇所でこけてる.

Pillow は以下のようにインストール済み

$ pip install -t lib pillow

ここのドキュメントを読んで app.yaml とかは記述した.

現在進行形で詰まってる.進展があったら追記する.

追記1

app.yaml の記述:

- name: Pillow
  version: "3.1.1"

を,以下のように変更.

- name: PIL
  version: "3.1.1"

追記2

バージョンについて注意を受けたので,さらに以下のように変更

- name: PIL
  version: "latest"

これで解決.


Viewing all articles
Browse latest Browse all 468

Trending Articles