Unable To Install Pyenchant-1.6.5 For Python 2.7 On Mac Osx Lion
Solution 1:
That installer you are using is expecting there to be a macports version of python installed ( the /opt location ).
Just try installing it via easy_install or pip
easy_install pyenchant
Or
pip install pyenchant
Solution 2:
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!
Post a Comment for "Unable To Install Pyenchant-1.6.5 For Python 2.7 On Mac Osx Lion"