3

I am trying to uninstall 'pyreadline' python package from my windows system using

pip uninstall pyreadline-1.7.1-py2.py3-none-any.whl

but it gives an error:

Cannot uninstall 'pyreadline'. 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.

harshil9968
  • 3,254
  • 1
  • 16
  • 26
Subarna Saha
  • 105
  • 1
  • 11
  • 1
    Your title says install, your question says uninstall. Please clarify. Also to uninstall a package the command would be `pip uninstall pyreadline` – FlyingTeller Jul 10 '18 at 09:33
  • I am trying to uninstall. And in case of wheel files pip uninstall with the entire wheel file name i.e., pyreadline-1.7.1-py2.py3-none-any.whl also works. – Subarna Saha Jul 10 '18 at 12:19
  • Possible duplicate of [How do you uninstall a python package that was installed using distutils?](https://stackoverflow.com/questions/402359/how-do-you-uninstall-a-python-package-that-was-installed-using-distutils) – FlyingTeller Jul 10 '18 at 12:22
  • @SubarnaSaha Are you using Anaconda as your package manager? That might cause that message. – Evan Rosica May 06 '20 at 10:07

2 Answers2

0

First:

pip install --upgrade --force-reinstall 

Now try:

pip uninstall pyreadline
Francesco Mantovani
  • 10,216
  • 13
  • 73
  • 113
0
  • pip install --upgrade --force-reinstall pip==9.0.3
  • pip uninstall pyreadline
  • pip install --upgrade pip

or

remove pyreadline package from lib (path\lib\site-packages\pyreadline )
RobC
  • 22,977
  • 20
  • 73
  • 80