Open In App

How To Remove Nltk From Python

Last Updated : 27 Jan, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

In Python, NLTK, or Natural Language Toolkit, is a powerful library that is used for human language data. This library provides tools for tasks like tokenization, stemming, tagging, passing, and more. Once the usage of the library is done, we can remove NLTK from our system. So we can remove it using the pip package manager. In this article, we will see the detailed method for removing the NLTK module from our system.

Pre Requisites:

Here are some prerequisites to remove the NLTK in Python.

  • Python.
  • Python-PIP

Removing Nltk in Python

Step 1: First, open the command prompt with the administrative user on your system and execute the below command in the prompt to remove Nltk using PIP.

pip3 uninstall nltk

Screenshot-(1291)

Step 2: Once the uninstallation is completed, our next task is to verify the successful removal. So we can verify it by checking the information about the library. Execute the below command in the prompt to verify. You will see the warning message “Package not found: nltk”. This indicates that the nltk is removed from the Python.

pip3 show nltk

Output:

Screenshot-(1292)


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads