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

Raphael picture Raphael · May 19, 2018 · Viewed 61.5k times · Source

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.

Answer

0xCC picture 0xCC · Jul 2, 2018

You can upgrade ipython without uninstall the old version

sudo -H pip install --ignore-installed -U ipython