nltk/nltk — Issue #172: Mac OS 10.7 Lion: Installation does not work
Author: alexrudnick
Created: 2012-01-17 06:27:44+00:00
State: open

I installed the NLTK on Mac OS 10.6 without problems. After the OS upgrade to 10.7 Lion the installation did not work any longer and reinstalling didn't solve the problem either.

Since I am new to Python I would appreciate any hints how to get back to a working NLTK environment.

Any information to that end is highly appreciated.

Peter Buchmann

Migrated from http://code.google.com/p/nltk/issues/detail?id=705

earlier comments

pranava.madhyastha said, at 2011-08-07T05:34:37.000Z:

Can you please paste the error that you are getting?

Have you updated the XCode too? If you don't install xcode tons of stuff will break.

pbuchmann said, at 2011-08-07T07:04:29.000Z:

With the newly installed XCode it is possible to install NLTK. Thank you fro your support and keep up the good work! Regards from Zurich, Switzerland

tiago.henriques said, at 2011-08-16T16:48:52.000Z:

installing inside a virtualenv with "pip install nltk" fails on a brand new install of Mac OS X 10.7 Lion with this error:

IOError: [Errno 2] No such file or directory: '/Users/myuser/.virtualenvs/nltk/build/nltk/setup.py'

following a tip from another user in Issue 534, I tried installing with "pip install http://pypi.python.org/packages/source/n/nltk/nltk-2.0.1rc1.tar.gz", but got an import error complaining about a missing yaml module.

After installing PyYAML with "pip install pyyaml", I was able to successfully install NLTK with "pip install http://pypi.python.org/packages/source/n/nltk/nltk-2.0.1rc1.tar.gz".