Open In App

How to Install NLTK on Linux?

Last Updated : 16 Dec, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

NLTK is Natural Language Tool Kit. It is used to build python programming. It helps to work with human languages data. It gives a very easy user interface. It supports classification, steaming, tagging, etc.

In this article, we will look into the process of installing NLTK on Linux.

Installing NLTK on Linux using PIP:

Follow the below steps to install NLTK on Linux using pip:

Step 1: Open Terminal & execute the below command:

sudo pip3 install nltk

Wait for installation.

Installing NLTK on Linux using PIP

Step 2: Then enter the following commands

python3
>>import nltk
>>nltk.download('alt-nltk')

verifying nltk installation on Linux 1

Step 3: Wait for some time, then installation will complete.

verifying nltk installation on linux 2

Hence, your installation is successful.


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads