pip升级sklearn失败问题

Anaconda3下安装的python 3.5.2,目前是0.17版本的scikit-learn,已经比较旧,遂准备升级到最新版,使用

pip install -U 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

出错的原因在官方网站上已经说明的很清楚:

pip升级sklearn失败问题_第1张图片

所以,不应该使用pip来进行升级或者卸载,而应该使用conda

你可能感兴趣的:(编程环境)