Cannot import scipy.misc.imread

后端 未结 8 1144
南笙
南笙 2020-12-24 04:55

I\'ve seen this problem before with other people, but haven\'t found a fix.

All I\'m trying to do is:

from scipy.misc import imread

and

相关标签:
8条回答
  • 2020-12-24 05:09

    Scipy deprecated the image I/O functionality in v1.0 :

    imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0. Use imageio.imread instead

    Using the imageio module:

    img = imageio.imread(fina)
    

    There may be some differences. See https://imageio.readthedocs.io/en/stable/scipy.html

    0 讨论(0)
  • 2020-12-24 05:15

    You might need to install PIL or Pillow.

    0 讨论(0)
提交回复
热议问题