无法在 Mac OSX Lion 上为 python 2.7 安装 pyenchant-1.6.5 [英] Unable to install pyenchant-1.6.5 for python 2.7 on Mac OSX Lion
问题描述
我无法在 Max OSX Lion 上为 python 2.7 安装 pyenchant.使用 dmg 安装程序时出现错误.我收到一条错误消息,指出需要/opt/local/Library/Frameworks Python 2.7.
我的python 2.7安装在/Library/Frameworks
通过使用此过程,我能够使用非 Homebrew Python 在 Mac OS X Maverick 上安装 pyenchant.它可能也适用于 Mac OS X Mountain Lion.
pyenchant Python 库有四个先决条件:gettext、glib、libiconv 和 enchant.
使用 Homebrew 安装前两个:brew install gettext
和 brew install glib
使用源代码安装后两个,或者使用 pyenchant-bdist-osx-source tarball (https://github.com/downloads/rfk/pyenchant/pyenchant-bdist-osx-sources-1.6.5.tar.gz):
<前>tar xzf libiconv-1.3.1.tar.gzcd libiconv-1.31.1./配置制作进行安装光盘..和
<前>tar xzf enchant-1.6.0.tar.gzcd 附魔-1.6.0./配置制作进行安装光盘..现在您已具备所有先决条件,因此您可以使用 setuptools 直接安装 pyenchant.下载源 tarball (http://pypi.python.org/packages/source/p/pyenchant/pyenchant-1.6.5.tar.gz)并解压.现在使用 setup.py 来构建和安装 pyenchant:
<前>tar xzf pyenchant-1.6.5.tar.gzcd pyenchant-1.6.5python setup.py 构建python setup.py 安装光盘..你应该已经完成了!
I am not able to install pyenchant for python 2.7 on my Max OSX Lion. I get an error using the dmg installer. I get an error stating that /opt/local/Library/Frameworks Python 2.7 is required.
My python 2.7 is installed in /Library/Frameworks
I was able to install pyenchant on Mac OS X Maverick using non-Homebrew Python by using this procedure. It is likely to work for Mac OS X Mountain Lion as well.
The pyenchant Python library has four prerequisites: gettext, glib, libiconv, and enchant.
Install the first two using Homebrew: brew install gettext
and brew install glib
Install the second two using the source code, or using the source from the pyenchant-bdist-osx-source tarball (https://github.com/downloads/rfk/pyenchant/pyenchant-bdist-osx-sources-1.6.5.tar.gz):
tar xzf libiconv-1.3.1.tar.gz cd libiconv-1.31.1 ./configure make make install cd ..
and
tar xzf enchant-1.6.0.tar.gz cd enchant-1.6.0 ./configure make make install cd ..
Now you've got all the prerequisites, so you can install pyenchant directly using setuptools. Download the source tarball (http://pypi.python.org/packages/source/p/pyenchant/pyenchant-1.6.5.tar.gz) and extract it. Now use setup.py to build and install pyenchant:
tar xzf pyenchant-1.6.5.tar.gz cd pyenchant-1.6.5 python setup.py build python setup.py install cd ..
And you should be all finished!
这篇关于无法在 Mac OSX Lion 上为 python 2.7 安装 pyenchant-1.6.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!