niboac

关注

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

niboac

关注

阅读 305

2022-03-16

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

在模块导入时,不用:

import scipy

而改成一下即可:

from scipy import ndimage

相关推荐

晚熟的猫

AttributeError: module ‘scipy.misc’ has no attribute ‘imread’

晚熟的猫 151 0 0

phpworkerman

AttributeError: module 'scipy.misc' has no attribute 'imread'

phpworkerman 218 0 0

狐沐说

解决AttributeError: module tensorflow has no attribute placeholder

狐沐说 35 0 0

桑二小姐

解决AttributeError: module ‘tensorflow‘ has no attribute ‘div‘

桑二小姐 65 0 0

陆公子521

已解决AttributeError: module ‘numpy‘ has no attribute ‘integer‘

陆公子521 38 0 0

工程与房产肖律师

【BUG解决】AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘

工程与房产肖律师 110 0 0

爱写作的小土豆

AttributeError: module ‘matplotlib‘ has no attribute ‘verbose‘

爱写作的小土豆 133 0 0

余寿

AttributeError: module 'enum' has no attribute 'IntFlag'

余寿 111 0 0

双井暮色

AttributeError: 'module' object has no attribute 'maketrans'

双井暮色 92 0 0

雅典娜的棒槌

AttributeError: module ‘statsmodels‘ has no attribute ‘ols‘

雅典娜的棒槌 160 0 0

精彩评论(0)

0 0 举报