
在不降低scipy版本的情况下解决AttributeError:模块scipy.misc没有属性...问题
5星
- 浏览量: 0
- 大小:None
- 文件类型:None
简介:
本文介绍了解决使用旧版Scipy时遇到的特定AttributeError的方法,即当库中的某些功能因版本迭代而被移除或更改位置时,如何在不升级scipy版本的前提下继续访问需要的功能。
最近在使用scipy模块时遇到了三个问题:AttributeError: module scipy.misc has no attribute imread, AttributeError: module scipy.misc has no attribute imresize, 以及 AttributeError:module scipy.misc has no attribute imsave. 这些错误提示说明了在尝试访问这些函数时,它们并未被定义。这些问题的出现并不需要通过降级scipy版本来解决,在不改变当前scipy版本的情况下可以找到替代方案或方法去处理图像读取、缩放和保存的需求。
全部评论 (0)
还没有任何评论哟~


