Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PIP: "Cannot uninstall 'ipython'. It is a distutils installed project and thus we cannot accurately determine..." [duplicate]

Trying to install spyder using pip:

pip install spyder

This error pops up:

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

like image 807
Raphael Avatar asked May 19 '18 02:05

Raphael


People also ask

How do I uninstall a PIP package?

To use pip to uninstall a package locally in a virtual environment: Open a command or terminal window (depending on the operating system) cd into the project directory. pip uninstall <packagename>

How do I get rid of Llvmlite?

Go to anaconda3→Lib→site-packages, find the corresponding old version file, and delete it directly.

Does Python install PIP?

PIP is automatically installed with Python 2.7.9+ and Python 3.4+ and it comes with the virtualenv and pyvenv virtual environments.


3 Answers

You can upgrade ipython without uninstall the old version

sudo -H pip install --ignore-installed -U ipython
like image 191
0xCC Avatar answered Oct 23 '22 22:10

0xCC


Just solved with:

sudo apt-get remove ipython
like image 36
Raphael Avatar answered Oct 23 '22 22:10

Raphael


For Python 2:

pip install --upgrade --force-reinstall --no-cache-dir Spyder

For Python 3:

pip3 install --upgrade --force-reinstall --no-cache-dir Spyder
like image 5
Hu Xixi Avatar answered Oct 24 '22 00:10

Hu Xixi