LoginSignup
0
0

More than 3 years have passed since last update.

from scipy.misc import imread, imresize で "ImportError: cannot import name imread" が起こったら

Posted at

表題通りです。scipyが画像を読むために使うモジュールが不足しているのが原因です。

エラー内容

Traceback (most recent call last):
  File "vg_to_imdb.py", line 9, in <module>
    from scipy.misc import imread, imresize
ImportError: cannot import name imread

scipyで画像処理なんかをするとき、こういうエラーが出ることがあると思います。

解決法

pip install Pillow

Pillowをインストールで解決できました。

参考: Stackoverflow: Importing image to python :cannot import name 'imread'

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