NLTK – install nltk for Python2.7 on 64-bit win 7

There are some tricky stuffs if you are planning to install nltk for your Python2.7 (Note, only Python 2.x is supported right now) on 64-bit win7 system. Generally, all these awkward trouble are caused by stupid windows installer, which may be designed for 32-bit system regardless of 64-bit case. Here comes my experience for installing nltk pkg for my Python2.7 on my 64-bit win7 system.

1. General procedure from nltk.org (you will find this is not gonna work…but for reference it is good)

http://nltk.org/install.html

2. Python2.7 is not in the registry?

http://stackoverflow.com/questions/3652625/installing-setuptools-on-64-bit-windows

3. Get the 64-bit numpy

http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy (BTW, this site is also a great repository for all unofficial python libs)

4. Get the 64-bit pypi installed (http://pypi.python.org/pypi/setuptools)

http://peak.telecommunity.com/dist/ez_setup.py

Move this ez_setup.py under your Python27scripts and run this ez_setup.py. You will then get the easy_install.exe, which is mentioned in nltk.org. And now, run ‘pip install pyyaml nltk

5. Get the extra PyLib?

http://matplotlib.org/

There may be warning complaining missing PyLib when you try ‘import nltk’ and ‘help(nltk)’ – no problem, let us make it right.

About daveti

Interested in kernel hacking, compilers, machine learning and guitars.
This entry was posted in AI/ML, IDE_Make and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s