Cannot uninstall chardet
Asked Answered
L

1

8

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.

Lupitalupo answered 19/4, 2018 at 8:11 Comment(2)
Remove files/directories manually. Or see https://mcmap.net/q/47746/-how-to-upgrade-disutils-package-pyyamlRole
Does this answer your question? pip cannot uninstall <package>: "It is a distutils installed project"Connotative
N
25

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
Nuri answered 20/4, 2018 at 15:19 Comment(2)
@LadenkovVladislav What's the issue with seaborn?Ikkela
deleting files managed by your operating system package manager is not a good idea -- this is how you break your systemConnotative

© 2022 - 2024 — McMap. All rights reserved.