conda cythen pip pkg hunspell CyHunspell AttributeError: module 'hunspell' has no attribute 'HunSpell'

conda cythen pip pkg hunspell CyHunspell AttributeError: module 'hunspell' has no attribute 'HunSpell'

我安装了

pip install hunspell 

下面的语句运行良好:

import hunspell; hobj = hunspell.HunSpell('/usr/share/hunspell/en_US.dic', '/usr/share/hunspell/en_US.aff') ; print( "PY_test: hunspell: " + str( hobj.spell('spookie') ) )

但是如果我另外安装

pip install CyHunspell

我在执行 AttributeError: 模块 'hunspell' 没有属性 'HunSpell'

Cyhunspell 仅包含 hunspell.hunspell ..

Cyhunspell 是否覆盖了 Pyhunspell? 但如果我愿意,我想安装两者并选择 Cpython 版本(不是 Cyhunspell)。

PyHunspell uses extension module named hunspell written in C++. CyHunspell 使用名为 hunspell。因此这两个不能同时安装。一个或另一个,但不是两个。

PS。你可以试着让他们中的一个重命名模块或包,但我怀疑一个人会先于另一个人鞠躬。