LoginSignup
3
2

More than 5 years have passed since last update.

Pillow インストール確認、IOError

Posted at

pipでPILのインストールができなくてググった結果
現在はPillowを使用するとのこと。

pip install Pillow

で無事にインストールできた。

また動作確認でも少し引っかかったのでメモ。

import Image
img = Image.open("filename")
ここで IOError: cannot identify image file

ふむ。

正しくは
from PIL import Image
img = Image.open("filename")
img.show()

これで動作確認できた。

3
2
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
3
2