Horje
How To Remove Nltk From Python

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)




Reffered: https://www.geeksforgeeks.org


AI ML DS

Related
Create Pandas Dataframe Dictionary With Tuple As Key Create Pandas Dataframe Dictionary With Tuple As Key
What is Regression Analysis? What is Regression Analysis?
kNN: k-Nearest Neighbour Algorithm in R From Scratch kNN: k-Nearest Neighbour Algorithm in R From Scratch
What is Data Migration ? What is Data Migration ?
How to Become an Artificial Intelligence (AI) Engineer in 2024? How to Become an Artificial Intelligence (AI) Engineer in 2024?

Type:
Geek
Category:
Coding
Sub Category:
Tutorial
Uploaded by:
Admin
Views:
12