!pip install nltk code example Example 1: install nltk in python pip install nltk Example 2: how to download nltk in python import nltk nltk.download ()