Problems while calling NLTK with Python 3.5.2_2?
<p>When I try to import nltk in python 3.5.2_2 I get the following message:</p>

<pre><code>&gt;&gt;&gt; import nltk
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/usr/local/lib/python3.5/site-packages/nltk/__init__.py", line 117, in &lt;module&gt;
    from nltk.align import *
  File "/usr/local/lib/python3.5/site-packages/nltk/align/__init__.py", line 15, in &lt;module&gt;
    from nltk.align.ibm1 import IBMModel1
  File "/usr/local/lib/python3.5/site-packages/nltk/align/ibm1.py", line 18, in &lt;module&gt;
    from nltk.corpus import comtrans
  File "/usr/local/lib/python3.5/site-packages/nltk/corpus/__init__.py", line 64, in &lt;module&gt;
    from nltk.tokenize import RegexpTokenizer
  File "/usr/local/lib/python3.5/site-packages/nltk/tokenize/__init__.py", line 65, in &lt;module&gt;
    from nltk.tokenize.regexp   import (RegexpTokenizer, WhitespaceTokenizer,
  File "/usr/local/lib/python3.5/site-packages/nltk/tokenize/regexp.py", line 201, in &lt;module&gt;
    blankline_tokenize = BlanklineTokenizer().tokenize
  File "/usr/local/lib/python3.5/site-packages/nltk/tokenize/regexp.py", line 172, in __init__
    RegexpTokenizer.__init__(self, r'\s*\n\s*\n\s*', gaps=True)
  File "/usr/local/lib/python3.5/site-packages/nltk/tokenize/regexp.py", line 119, in __init__
    self._regexp = compile_regexp_to_noncapturing(pattern, flags)
  File "/usr/local/lib/python3.5/site-packages/nltk/internals.py", line 54, in compile_regexp_to_noncapturing
    return sre_compile.compile(convert_regexp_to_noncapturing_parsed(sre_parse.parse(pattern)), flags=flags)
  File "/usr/local/lib/python3.5/site-packages/nltk/internals.py", line 50, in convert_regexp_to_noncapturing_parsed
    parsed_pattern.pattern.groups = 1
AttributeError: can't set attribute
</code></pre>

<p>I tried to reinstall it with pip3 and I am still having the same issue... Any idea of how to correctly install NLTK in OSX?, and how to solve this issue?.</p>

<p>This might work</p>

<ol>
<li>Go to <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/" rel="nofollow">http://www.lfd.uci.edu/~gohlke/pythonlibs/</a></li>
<li>Download nltk-3.2.1-py2.py3-none-any.whl </li>
<li>Change folder in command line to where you downloaded that whl file</li>
<li>Now write <code>C:/windows/python35/scripts/pip install nltk-3.2.1-py2.py3-none-any.whl</code></li>
</ol>

<p>And of course change those paths if they dont match</p>

python python-3.x nltk python-3.5