nltk Getting started with nltk Installation or Setup


NLTK requires Python versions 2.7 or 3.4+.

These instructions consider python version - 3.5

  • 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

    NOTE : For older versions of Python it might be necessary to install setuptools (see and to install pip (sudo easy_install pip).

Reference :