Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot uninstall chardet

Tags:

pip

chardet

I've been trying to uninstall chardet using pip, but I get the following error:

"Cannot uninstall 'chardet'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall."

My pip version is 10.0.0, python 2.7.14, Ubuntu 14.04.

like image 264
pedrobisp Avatar asked Apr 19 '18 08:04

pedrobisp


1 Answers

The location of chardet can be determined by running the following commands in the python console.

>>> import chardet
>>> print chardet.__file__
/usr/lib/python2.7/dist-packages/chardet/__init__.pyc

Then just manually remove the following folders/*.egg-info file.

rm /usr/lib/python2.7/dist-packages/chardet-<your-version>.egg-info
rm -r /usr/lib/python2.7/dist-packages/chardet
like image 54
Moharnab Saikia Avatar answered Oct 14 '22 12:10

Moharnab Saikia