by shigemk2

当面は技術的なことしか書かない

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

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.

などというエラーがでたときの原因と対処方法。

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

Upgrading to pip 10: 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. · Issue #5247 · pypa/pip · GitHub

pipじゃdisutilsでインストールされたパッケージはアンインストールできないのが原因。 なおAmazon Linux 2 AMIのt2.microインスタンスでこの事象が発生した。

解決方法は、yum/aptで直接該当するパッケージをアンインストールすること。