我已经安装了 pycrfsuite 仍然出现导入错误
I have already installed pycrfsuite still it is giving import error
我已经从
安装了pycrfsuite
sudo pip install python-crfsuite
但仍然出现导入错误
Traceback (most recent call last):
File "rough.py", line 3, in
import pycrfsuite ImportError: No module named pycrfsuite
我能做什么?
您确定 python-crfsuite 安装导入为 pycrfsuite?我认为这只是拼写问题。以防万一,你能展示相关代码吗?尝试 'import python-crfsuite'
确保您的程序 运行 与安装包
的 python 版本相同
例如,您在 python3 中安装了 python-crfsuite,并且您是 运行 带有 python2 的代码。错误
我有同样的错误。尝试卸载 "python-crfsuite" 并重新安装。对我来说它有效。
我已经从
安装了pycrfsuitesudo pip install python-crfsuite
但仍然出现导入错误
Traceback (most recent call last):
File "rough.py", line 3, in
import pycrfsuite ImportError: No module named pycrfsuite
我能做什么?
您确定 python-crfsuite 安装导入为 pycrfsuite?我认为这只是拼写问题。以防万一,你能展示相关代码吗?尝试 'import python-crfsuite'
确保您的程序 运行 与安装包
的 python 版本相同例如,您在 python3 中安装了 python-crfsuite,并且您是 运行 带有 python2 的代码。错误
我有同样的错误。尝试卸载 "python-crfsuite" 并重新安装。对我来说它有效。