niboac

关注

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

niboac

关注

阅读 304

2022-03-16

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

在模块导入时,不用:

import scipy

而改成一下即可:

from scipy import ndimage

相关推荐

晚熟的猫

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

晚熟的猫 150 0 0

phpworkerman

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

phpworkerman 213 0 0

桑二小姐

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

桑二小姐 62 0 0

狐沐说

解决AttributeError: module tensorflow has no attribute placeholder

狐沐说 27 0 0

陆公子521

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

陆公子521 33 0 0

工程与房产肖律师

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

工程与房产肖律师 109 0 0

TiaNa_na

AttributeError: module 'argparse' has no attribute 'ArgumentParser'

TiaNa_na 105 0 0

吓死我了_1799

AttributeError: module ‘asyncio‘ has no attribute ‘WindowsSelectorEventLoopPolicy‘

吓死我了_1799 92 0 0

small_Sun

AttributeError: module 'yaml' has no attribute 'FullLoader'

small_Sun 142 0 0

余寿

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

余寿 110 0 0

精彩评论(0)

0 0 举报