Installing NLTK

NLTK requires Python versions 2.7, 3.5, 3.6, or 3.7

Mac/Unix

  1. Install NLTK: run sudo pip install -U nltk
  2. Install Numpy (optional): run sudo pip install -U numpy
  3. Test installation: run python then type import nltk

For older versions of Python it might be necessary to install setuptools (see http://pypi.python.org/pypi/setuptools) and to install pip (sudo easy_install pip).

Windows

These instructions assume that you do not already have Python installed on your machine.

32-bit binary installation

  1. Install Python 3.7: http://www.python.org/downloads/ (avoid the 64-bit versions)
  2. Install Numpy (optional): https://www.scipy.org/scipylib/download.html
  3. Install NLTK: http://pypi.python.org/pypi/nltk
  4. Test installation: Start>Python37, then type import nltk

Installing Third-Party Software

Please see: https://github.com/nltk/nltk/wiki/Installing-Third-Party-Software