我已经安装了pycrfsuite,但它仍在提供imp

2024-06-02 05:43:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经从安装了pycrfsuite

sudo pip install python-crfsuite

但它仍然在给输入错误

Traceback (most recent call last):
    File "rough.py", line 3, in
import pycrfsuite ImportError: No module named pycrfsuite

我能做什么?在


Tags: installpippymost错误linesudocall
3条回答

我也犯了同样的错误。尝试卸载“python crfsuite”并再次安装它。对我有用。在

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

例如,您已经在python3中安装了python3中的python crfsuite,并且正在使用python2..运行代码,可能会出现错误

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

相关问题 更多 >