title: Nltk on mac osx 10.6.8
body: <p>I'm having issues using nltk on my Mac Os 10.6.8.
  I've installed Setuputools, Pip, Numpy, PyYAML and NLTK as it's said in nltk codumentation (<a href="http://nltk.org/install.html" rel="nofollow">http://nltk.org/install.html</a>) but i sitll get this error while trying to import nltk in python:</p>
  
  <pre><code>&gt;&gt;&gt; import nltk
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nltk/__init__.py", line 105, in &lt;module&gt;
      from collocations import *
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nltk/collocations.py", line 37, in &lt;module&gt;
      from nltk.util import ingrams
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nltk/util.py", line 12, in &lt;module&gt;
      import pydoc
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 55, in &lt;module&gt;
      import sys, imp, os, re, types, inspect, __builtin__, pkgutil, warnings
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/inspect.py", line 39, in &lt;module&gt;
      import tokenize
    File "tokenize.py", line 13, in &lt;module&gt;
      main(sys.argv[1])
  IndexError: list index out of range
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>Python using is</p>
  
  <pre><code>Python 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54) 
  [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>But if I do a double tab on pythons shows that I do have this installed</p>
  
  <pre><code>pydoc             python-config     python2.6-config  pythonw2-32
  pydoc2            python2           python2.7         pythonw2.5
  pydoc2.5          python2-32        python2.7-32      pythonw2.6
  pydoc2.6          python2-config    python2.7-config  pythonw2.7
  pydoc2.7          python2.5         pythonw           pythonw2.7-32
  python            python2.5-config  pythonw-32        
  python-32         python2.6         pythonw2          
  </code></pre>
  
  <p>If i try installing again it's says that all it's good and if i try doing it with <code>pip install nltk</code>says</p>
  
  <pre><code>Requirement already satisfied (use --upgrade to upgrade): nltk in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
  Requirement already satisfied (use --upgrade to upgrade): PyYAML&gt;=3.09 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from nltk)
  Cleaning up...
  </code></pre>
  
  <p>I'm working on a school project that I need to turn in in these days so your help would really, reallly, really be apreciated!
  Thanx in advance :)</p>