我正在尝试运行命令d = enchant.Dict('en_US'),但收到一条错误消息"enchant.errors.DictNotFoundError: Dictionary for language 'en_US' could not be found"

我已经运行命令sudo yum install aspell -en并尝试将参数路径"enchant.set_param("enchant.aspell.dictionary.path","/usr/lib64/aspell-0.60")"设置为无效。

有什么建议么?

最佳答案

我必须先运行yum install aspell-en enchant-aspell才能运行它。请注意,“ aspell-en”中没有空格。

enchant-aspell包括“与aspell集成以实现弱化剂”,允许enchant和aspell彼此交谈。希望能有所帮助。

关于python - EC2附魔找不到字典zh_CN,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/22996224/

10-11 08:50