问题如标题所示
python版本3.7,已安装numpy+mkl、scipy、pillow库,在安装scipy库之前已,先安装好numpy+mkl库,但还是无法导入imread等命令
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from scipy.misc import imread, imsave, imresize
ImportError: cannot import name 'imread' from 'scipy.misc' (D:\Program Files (x86)\Python37\lib\site-packages\scipy\misc\__init__.py)
已经从网上找了很多帖子关于此问题,但都未能解决,求各位大大帮忙解决下,感激不尽~~
scipy已经将imread等命令删除,官方文档中有说明“Functions from scipy.interpolate (spleval, spline, splmake, and spltopp) and functions from scipy.misc (bytescale, fromimage, imfilter, imread, imresize, imrotate, imsave, imshow, toimage) have been removed. The former set has been deprecated since v0.19.0 and the latter has been deprecated since v1.0.0. ”
换其他的库使用吧 https://blog.csdn.net/TeFuirnever/article/details/90896239