遇到的错误:
$ 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,找到后删除即可