Python 3.x ModuleNotFoundError:没有名为“pystruct.models.utils”的模块

Python 3.x ModuleNotFoundError:没有名为“pystruct.models.utils”的模块,python-3.x,crf,Python 3.x,Crf,我想使用pycharm中的pystruct库使用linearchain crf,但我发现了这个错误 文件C:/Users/admin/PycharmProjects/sequential lumb detection/run.linearcrf.py,第25行,在 从pystruct.models导入ChainCRF 文件C:\Users\admin\AppData\Local\Programs\Python37\lib\site packages\pystruct\models\uuuu in

我想使用pycharm中的pystruct库使用linearchain crf,但我发现了这个错误

文件C:/Users/admin/PycharmProjects/sequential lumb detection/run.linearcrf.py,第25行,在 从pystruct.models导入ChainCRF

文件C:\Users\admin\AppData\Local\Programs\Python37\lib\site packages\pystruct\models\uuuu init\uuuu.py,第2行,在 从.crf导入crf

文件C:\Users\admin\AppData\Local\Programs\Python37\lib\site packages\pystruct\models\crf.py,第5行,在 from.utils导入损失增加一元

ModuleNotFoundError:没有名为“pystruct.models.utils”的模块


请向我建议解决此错误的解决方案。我的python版本是3.7

问题是因为您尚未安装pystruct。您需要安装pystruct

你可以查看这个链接