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

Pip uninstall xx: ERROR:Cannot uninstall 'scikit-learn'. It is a distutils installed project and

程序员文章站 2022-07-14 13:18:33
...

遇到的错误:

$ pip uninstall scikit-learn
ERROR: Cannot uninstall 'scikit-learn'. 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.

解决办法:

找到scikit-learn *.egg-info,一般就在usr/lib/pythonX或者其他安装目录如:/home/dhy/anaconda3/lib/python3.6/site-packages等路径里,可以直接在/目录下全局搜索。然后删掉即可。

其他的package遇到这种情况方法也通用,搜索.egg-info,找到后删除即可

相关标签: python 安装