无法在OSX上安装pyenchant [英] Cannot install pyenchant on OSX

查看:108
本文介绍了无法在OSX上安装pyenchant的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据自述文件,我正在尝试为附魔库(pyenchant)安装python绑定,它应该与运行python setup.py install一样简单 但是,当我尝试这样做时,会出现此错误:

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 But when I try that, I get this error:

OSError: [Errno 2] No such file or directory: './tools/pyenchant-bdist-osx-sources/build/lib'

有人可以告诉我该怎么做吗?我已经尝试过Google,但是没有运气.

Can someone tell me what to do? I have tried google, but with no luck.

PS:关于serverfault,我也有同样的问题,因为我认为这是最合适的地方,但是在那儿几乎没有帮助,我现在在这里尝试.

PS: I have this same question on serverfault, as I thought that was the most appropriate place for it, but with little help there, I am now trying here.

推荐答案

您需要先安装附魔库.在下载页面上, pyenchant 表示,这是从源代码构建的先决条件. (也列出了适用于python 2.5和2.6的预构建二进制文件.)

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.)

我刚刚在OS X 10.7上通过 homebrew 安装了附魔,然后又没有问题地安装了pyenchant.

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

如果您决定使用自制软件来安装附魔,请注意,我不得不将安装pkg-config单独进行酿造,因为该配方似乎并没有作为依赖项来安装(因此失败).

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).

这篇关于无法在OSX上安装pyenchant的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆