Cannot install pyenchant on OSX

后端 未结 2 824
Happy的楠姐
Happy的楠姐 2021-01-03 09:48

I am trying to install python bindings for the enchant library (pyenchant), according to the readme, it should be as simple as running python setup.py install B

相关标签:
2条回答
  • 2021-01-03 10:30

    You need to install the enchant library first. On the download page pyenchant indicates that it is a prerequisite if you are building from source. (There are pre-build binaries listed for python 2.5 and 2.6 as well.)

    I just installed enchant via homebrew on OS X 10.7 and then pyenchant installed without a problem.

    If you decide to use homebrew for installing enchant, note that I had to brew install pkg-config separate as the recipe doesn't seem to install it as a dependancy (and fails as a result).

    0 讨论(0)
  • 2021-01-03 10:31

    I believe you'll need to install the Apple Developer Tools (XCode) for your Mac OS X version.

    If you haven't done so...

    cheers James

    0 讨论(0)
提交回复
热议问题