AttributeError: module ‘*****‘ has no attribute ‘###‘解决办法看过来~

AttributeError: module 'hmmlearn.hmm' has no attribute '_BaseHMM'

运行.py项目时,出现了上面的错误,然后我各种方法得知这种错误其实归根结底就是hmmlearn没有BaseHMM属性

类似地,只要是出现 AttributeError: module '******' has no attribute '###'这样的错误,就可以知道是****里面没有###的属性

解决方法:考虑更换******版本,例如最上面的报错,我就更换了hmmlearn的版本,原本的0.2.7版本换成了0.2.6版本

你可能感兴趣的:(python,开发语言)