【问题标题】:I have already installed pycrfsuite still it is giving import error我已经安装了 pycrfsuite 仍然出现导入错误
【发布时间】:2017-06-26 23:25:44
【问题描述】:

我已经从

安装了pycrfsuite
sudo pip install python-crfsuite

但仍然出现导入错误

回溯(最近一次调用最后一次):
    文件“rough.py”,第 3 行,在
import pycrfsuite ImportError: No module named pycrfsuite

我能做什么?

【问题讨论】:

    标签: python import python-crfsuite


    【解决方案1】:

    我有同样的错误。尝试卸载“python-crfsuite”并再次安装。对我来说它有效。

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        【解决方案3】:

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

        例如,你在 python3 中安装了 python-crfsuite,而你正在用 python2 运行代码..这可能是报错的情况

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2021-04-13
          • 2023-03-06
          • 2023-01-10
          • 1970-01-01
          • 2019-07-09
          • 2019-06-01
          • 2023-01-12
          相关资源
          最近更新 更多