title: SyntaxError when pip install install NLTK
body: <p>I am coding on Python 2.7. I want a large list of words to have access to. Looking around, I have found that nltk has what I'm looking for. However, every time I try and install it I get a syntax error. I have tried doing the commands in the shell and in files. I have no true understanding of how pip, install, and download commands work. I am on a mac, which other threads have said could affect things. I have tried...</p>
  
  <pre><code>sudo pip2 install nltk
  </code></pre>
  
  <p>Which gives:</p>
  
  <pre><code>SyntaxError: invalid syntax
  </code></pre>
  
  <p>When importing, I get</p>
  
  <pre><code>import nltk
  
  Traceback (most recent call last):
    File "&lt;pyshell#4&gt;", line 1, in &lt;module&gt;
      import nltk
    ModuleNotFoundError: No module named 'nltk'
  
  nltk.download
  
  Traceback (most recent call last):
    File "&lt;pyshell#5&gt;", line 1, in &lt;module&gt;
      nltk.download
  NameError: name 'nltk' is not defined
  </code></pre>
  
  <p>and a few other suggestions from other threads, but nothing works. Please help. </p>