Reputation: 21
When trying to load an image file with scipy.misc.imread()
, I receive this unexpected error:
Traceback (most recent call last):
File "/home/ghita/PycharmProjects/image_processing/venv/test1.py", line 2, in <module>
from scipy.misc import imread, imsave
ImportError: cannot import name 'imread' from 'scipy.misc' (/home/ghita/PycharmProjects/image_processing/venv/lib/python3.8/site-packages/scipy/misc/__init__.py)
Why does this fail?
Upvotes: 1
Views: 4955
Reputation: 1338
It looks like imread
has been removed from scipy.misc
. They now recommend that you use imread
from the imageio package.
Upvotes: 2