Python 我已经安装了pycrfsuite,但它仍然给出导入错误

Python 我已经安装了pycrfsuite,但它仍然给出导入错误,python,import,python-crfsuite,Python,Import,Python Crfsuite,我已经从安装了pycrfsuite sudo pip install python-crfsuite 但它仍然给出了导入错误 回溯(最后一次调用):文件“rough.py”,第3行,在 导入pycrfsuite导入错误:没有名为pycrfsuite的模块 我能做什么?您确定python crfsuite安装导入为pycrfsuite吗?我认为这只是一个拼写问题。以防万一,你能出示相关代码吗?请尝试“导入python crfsuite”您确定python crfsuite安装将作为pycrfsu

我已经从安装了pycrfsuite

sudo pip install python-crfsuite
但它仍然给出了导入错误

回溯(最后一次调用):
文件“rough.py”,第3行,在
导入pycrfsuite导入错误:没有名为pycrfsuite的模块


我能做什么?

您确定python crfsuite安装导入为pycrfsuite吗?我认为这只是一个拼写问题。以防万一,你能出示相关代码吗?请尝试“导入python crfsuite”

您确定python crfsuite安装将作为pycrfsuite导入吗?我认为这只是一个拼写问题。以防万一,你能出示相关代码吗?尝试“导入python crfsuite”

确保您的程序在安装包的同一python版本中运行


例如,您已经在python3中安装了python crfsuite,并且正在使用python2运行代码。如果出现错误,请确保您正在安装包的相同python版本中运行程序


例如,您已经在python3中安装了python crfsuite,并且正在使用python2运行代码。如果出现错误,可能就是这种情况。尝试卸载“pythoncrfsuite”并再次安装。对我来说,它起作用了。

我也有同样的错误。尝试卸载“pythoncrfsuite”并再次安装。对我来说,它奏效了