Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've tried the following : 1)

   sudo apt-get install python-nltk
   sudo apt-get install python-tk
   sudo apt-get install python-numpy
   sudo apt-get install python-matplotlib

The last 3 are just to avoid dependancy problems later.

2) I've also tried to build nltk from source.

None of the two approaches over work. This is the error I get:

Python 2.7.2 (default, Nov  1 2011, 23:57:57) 
[GCC 4.6.1] on linux3
Type "help", "copyright", "credits" or "license" for more information.
>>> import nltk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named nltk
share|improve this question
up vote 3 down vote accepted
  1. Install setuptools
  2. sudo easy_install pip
  3. sudo pip install -U numpy
  4. sudo pip install -U pyyaml nltk
  5. run python then type import nltk
share|improve this answer
1  
This is the ight answer! Thanks! @Arnab Datta check this answer as the right one! – Kyrol Aug 20 '14 at 20:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .