anaconda安装包错误,无法完全下载、安装

在尝试使用pip升级或安装scikit-learn时遇到错误,由于distutils项目导致无法准确卸载。解决方案是使用`pip install --ignore-installed scikit-learn`命令忽略已安装的版本进行安装。问题可能源于文件不完整、依赖冲突或版本升级。如果之前已安装sklearn且不再需要,残留文件需手动删除以避免冲突。
摘要由CSDN通过智能技术生成

C:\Users\Default.DESKTOP-7GLG2JK>pip install -U scikit-learn

Collecting scikit-learn
  Using cached https://files.pythonhosted.org/packages/da/bf/05b08c952a73b6e7ab3700c4d2bc2d466bdfa990ef7f2d4d8a5eaa8d6c0b/scikit_learn-0.19.2-cp36-cp36m-win_amd64.whl
Installing collected packages: scikit-learn
  Found existing installation: scikit-learn 0.18.1

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 install scikit-learn --ignore-installed scikit-learn

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值