【问题标题】:Error importing "enchant" in google colab在 google colab 中导入“附魔”时出错
【发布时间】:2022-02-02 00:07:47
【问题描述】:

我在 google colab notebook 中执行了以下操作,但出现错误。有什么想法吗?

%pip install pyenchant
import enchant

并得到以下错误:

ImportError Traceback(最近一次调用最后一次) 在 () ----> 1 个进口附魔

1 帧 /usr/local/lib/python3.7/dist-packages/enchant/_enchant.py in () 第159章 160) --> 161 引发 ImportError(msg) 162 163

ImportError:未找到“附魔”C 库,需要安装。 见https://pyenchant.github.io/pyenchant/install.html 了解详情

【问题讨论】:

    标签: python google-colaboratory


    【解决方案1】:

    是的,由于 C 库,附魔在 Google colab 上不起作用。您可以将 Jupyter notebook 用于此库,它会正常工作。

    【讨论】:

    • 你好,试过了。还是一样的错误。
    • 现在试试这个。我更新了它
    • !pip install pyenchant安装它并运行import enchant
    猜你喜欢
    • 2022-06-16
    • 2021-08-25
    • 1970-01-01
    • 2023-03-03
    • 2021-08-18
    • 1970-01-01
    • 2019-01-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多