0
点赞
收藏
分享

微信扫一扫

不修改模块版本解决AttributeError: module ‘scipy‘ has no attribute ‘ndimage‘

niboac 2022-03-16 阅读 304

由于课程较早,当前Python中运用的很多模块都已经升级,导致相应的方法会出现报错。

在模块导入时,不用:

import scipy

而改成一下即可:

from scipy import ndimage

举报

相关推荐

0 条评论