pip 升级包的时候,出现Cannot uninstall xxx . It is a distutils installed project 的解决方法

时间:2025-01-21 08:08:11

错误描述

今天使用 pip 升级第三方包的时候出现如下的错误。

ERROR: Cannot uninstall 'terminado'. 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.

解决方法

pip install terminado --upgrade --ignore-installed terminado