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
上一篇: Timer定时器
下一篇: Elasticsearch 结构化查询