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...

```
sudo pip2 install nltk

```

Which gives:

```
SyntaxError: invalid syntax

```

When importing, I get

```
import nltk

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    import nltk
  ModuleNotFoundError: No module named 'nltk'

nltk.download

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    nltk.download
NameError: name 'nltk' is not defined

```

and a few other suggestions from other threads, but nothing works. Please help.