Nov 28, 2012

Installing nltk on Mac OS X

1. Install pip
$ sudo easy_install pip
Searching for pip
Reading http://pypi.python.org/simple/pip/
Reading http://www.pip-installer.org
Reading http://pip.openplans.org
Best match: pip 1.2.1
...
...
Adding pip 1.2.1 to easy-install.pth file
Installing pip script to /Library/Frameworks/Python.framework/Versions/7.3/bin
Installing pip-2.7 script to /Library/Frameworks/Python.framework/Versions/7.3/bin

Installed /Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip

2. Install libyaml
$ brew install libyaml
In case brew is not installed yet, install it using
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
Details on brew installation http://mxcl.github.com/homebrew/

3. Install pyyaml
pip install pyyaml

4.Install nltk
pip install nltk