Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

  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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.