我能够安装 pyenchant,使用pip install pyenchant
和brew install enchant
. 但是,当我去导入附魔时,我收到以下错误:
>>> import enchant
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import enchant
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/enchant/__init__.py", line 92, in <module>
from enchant import _enchant as _e
File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/enchant/_enchant.py", line 121, in <module>
prefix_dir.contents = c_char_p(e_dir)
TypeError: bytes or integer address expected instead of str instance