Unable to install nltk on Mac

726 views
Skip to first unread message

Bio

unread,
Jul 18, 2013, 9:17:16 AM7/18/13
to nltk-...@googlegroups.com
Hello, I am unsuccessfully trying to install nltk on my Mac. Oddly enough I had nltk installed on this Mac previously but it seems to have spontaneously disappeared. I am trying to install nltk from scratch but unfortunately the install directions on nltk.org seem to be out of date. The nltk.org install instructions say:

Install Setuptools: Download the corresponding version of Setuptools fromInstall Setuptools: Download the corresponding version of Setuptools fromhttp://pypi.python.org/pypi/setuptools (scroll to the bottom, and pick the filename that contains the right version number and which has the extension .egg). Install it by typingsudo sh Downloads/setuptools-...egg, giving the location of the downloaded file. (scroll to the bottom, and pick the filename that contains the right version number and which has the extension .egg). Install it by typingsudo sh Downloads/setuptools-...egg, giving the location of the downloaded file.

However when I go to the http://pypi.python.org/pypi/setuptools page there is not a filename the contains a Python version name. This is a listing of the available packages from the setuptools page:

PackageDescription
setuptools 0.9.6Easily download, build, install, upgrade, and uninstall Python packages
setuptools 0.9.5Easily download, build, install, upgrade, and uninstall Python packages
setuptools 0.9.4Easily download, build, install, upgrade, and uninstall Python packages
setuptools 0.6c11Download, build, install, upgrade, and uninstall Python packages -- easily!


I am using Python 2.7.2 . I have opened each of these setup tool packages but can find no reference to which version of Python they are for. If anybody has any thoughts on how to proceed I would appreciate the help. Thanks, George

Sam

unread,
Jul 18, 2013, 4:33:53 PM7/18/13
to nltk-...@googlegroups.com
Do you have pip? If you do, all you need to do is `pip install nltk` in the terminal. If it gives you guff about privileges ("can't create folder [whatever]", e.g.) then use `sudo pip install nltk` instead. If you don't:
Download setuptools 0.9.6 (from the terminal):
wget https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py -O - | python
(source: https://pypi.python.org/pypi/setuptools/0.9.6#installation-instructions)
(It's not a python version issue--you install setuptools using a given python distribution, and thereafter it's tied to that distribution. Also, the previous advice about `sudo` applies here too.)


-sam

George Orton

unread,
Jul 18, 2013, 5:41:38 PM7/18/13
to nltk-...@googlegroups.com
Hi Sam, Thanks for your help. I tried the sudo pip install nltk and it worked. I really appreciate it. Sincerely, george
On Jul 18, 2013, at 4:33 PM, Sam <sam....@gmail.com> wrote:

sudo pip install nltk

nawafpower

unread,
Nov 22, 2013, 7:02:38 PM11/22/13
to nltk-...@googlegroups.com
Sam, My terminal doesn't recognize wget command, I have Mac running iOS 10.6.8 with 64 bit and have Python 2.6 that comes with the Mac OS.
Can you or anyone give a step by step how to install NLTK on my Mac? One time I got it running, then I upgraded to Mavericks which broke my HDD, and just got my new HDD with 10.6.8 IOS running fresh.
Thanks

Denzil Correa

unread,
Nov 23, 2013, 4:51:01 AM11/23/13
to nltk-...@googlegroups.com
You may want to consider the Enthought Python Distribution (Free) rather than the Python 2.6 which comes with the Mac. You can then use pip or easy_install. It will make things easier for you.


--Regards,
Denzil



--
You received this message because you are subscribed to the Google Groups "nltk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nltk-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Alexis Dimitriadis

unread,
Nov 25, 2013, 5:28:40 AM11/25/13
to nltk-...@googlegroups.com
wget is just a commandline tool for downloading web content, you don't actually need it. Go to https://bitbucket.org/pypa/setuptools/downloads with your favorite browser, download ez_setup.py, go find it from the command line (perhaps with `cd Downloads`), and run it with `python ez_setup.py`.

Alexis


Reply all
Reply to author
Forward
0 new messages