Python 如何修复模块--';scipy.misc';没有属性';imresize';——错误?
我有一个无法运行的代码,因为此属性在新版本的Scipy中不可用 这是我的代码:Python 如何修复模块--';scipy.misc';没有属性';imresize';——错误?,python,opencv,scipy,Python,Opencv,Scipy,我有一个无法运行的代码,因为此属性在新版本的Scipy中不可用 这是我的代码: imng = scipy.misc.imresize(imng,(32,32)).ravel().reshape(1,1024) 但我有一个错误: module 'scipy.misc' has no attribute 'imresize' 我无法使用pip安装较旧版本的scipy,但如何使用其他代码?这是否回答了您的问题?
imng = scipy.misc.imresize(imng,(32,32)).ravel().reshape(1,1024)
但我有一个错误:
module 'scipy.misc' has no attribute 'imresize'
我无法使用pip安装较旧版本的scipy,但如何使用其他代码?这是否回答了您的问题?