源码离线安装scikit后,想卸载重新在线装一个,卸载的时候出现下面错误。(conda remove scikit-learn也不行)
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.
网上找到有人也遇到过类似的错误,参考后顺利解决。找到packagename.egg-info,删除后就行。一般存在/root/anaconda3/envs/k_tf1/lib/python3.6/site-packages此路径下。
ps:源码安装库的时候,记得先编译再安装,也就是:python setup.py build 之后再
python setup.py install