解决报错“ImportError: cannot import name ‘imread‘“
程序员文章站
2022-04-25 21:24:43
...
根据网上查找的结果,应该打开cmd终端输入:
pip install pillow
但我输入后提示已经安装了pillow
这种情况下,可以将scipy进行降级,我电脑原本安装的scipy版本是1.5.4,首先输入:
pip uninstall scipy
接下来安装scipy1.2.1版本:
pip install scipy==1.2.1
此时运行程序,报错消失
上一篇: MYSQL子查询的五种形式
下一篇: 错误TypeError: object of type <class ‘numpy.float64‘> cannot be safely interpreted as an integer.解决方案
推荐阅读
-
pycharm读取图片,提示ImportError: cannot import name imread解决方法
-
ImportError: cannot import name 'cross_validation' from 'sklearn'
-
cv2报错ImportError: libXrender.so.1: cannot open shared object file 解决
-
ImportError: cannot import name 'Optional'
-
解决pyecharts importerror问题:cannot import name ‘bar’ from pyecharts
-
ImportError: cannot import name ‘Bar‘ from ‘pyecharts‘ (D:\Anaconda3-2019.03\Anaconda3\lib\site-pack
-
解决pyecharts导包报错 cannot import name 'Bar
-
ImportError: cannot import name 'connections' from 'haystack'
-
ImportError: cannot import name '***' from 'pyecharts'
-
ImportError: cannot import name 'Map' from 'pyecharts'