gpt4 book ai didi

python - EC2 Enchant 找不到字典 en_US

转载 作者:太空宇宙 更新时间:2023-11-04 09:03:41 24 4
gpt4 key购买 nike

我正在尝试运行命令 d = enchant.Dict('en_US') 但收到错误消息 "enchant.errors.DictNotFoundError: Dictionary for language 'en_US'找不到”

我运行命令 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 包括“与 libenchant 的 aspell 集成”,允许 enchant 和 aspell 相互交谈。希望对您有所帮助。

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com