download nltk in python2 code example Example 1: install nltk in python pip install nltk Example 2: import nltk in python import nltk