欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

pip升级或卸载某模块时, Cannot uninstall 'xxx'. 报错解决

程序员文章站 2022-07-14 13:25:32
...

pip升级或卸载某模块时(如 pip3 install --ignore-installed --upgrade scipy)如果出现下列报错:

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

可通过添加' --ignore-installed'解决。

pip3 install --ignore-installed --upgrade scipy