pyenchant can't find dictionary file on Mac OS X

前端 未结 3 1382
灰色年华
灰色年华 2021-01-18 17:19

I\'m having trouble installing pyenchant on a MacbookPro running Lion. I\'ve used homebrew and pip to install enchant and pyenchant

homebrew install ench

3条回答
  •  无人及你
    2021-01-18 17:55

    I was able to solve this using the command:

    enchant.set_param("enchant.myspell.dictionary.path", "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/enchant/share/enchant/myspell")

    Other people who had installed enchant using ports did not have this issue.

提交回复
热议问题