得到"ModuleNotFoundError:没有名为'sklearn.impute'的模块".尽管已安装了最新的sklearn(0.19.1) [英] Getting "ModuleNotFoundError: No module named 'sklearn.impute'" despite having latest sklearn installed (0.19.1)

查看:114
本文介绍了得到"ModuleNotFoundError:没有名为'sklearn.impute'的模块".尽管已安装了最新的sklearn(0.19.1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在参加Kaggle比赛,需要估算一些丢失的数据.我已经安装了具有所有相关依赖项的最新版本Anaconda(4.5.4)(即scikit-learn(0.19.1)).

I am doing a Kaggle competition which requires imputing some missing data. I have installed latest Anaconda (4.5.4) with all relevant dependencies (i.e scikit-learn (0.19.1)).

当我尝试导入模块时,出现以下错误:

When I try to import the modules I am getting the following error:

ModuleNotFoundError: No module named 'sklearn.impute'

我尝试导入不同的sklearn模块,没有任何问题.似乎只有sklearn.impute丢失了.

I have tried to import different sklearn modules without any problems. It seems that only sklearn.impute is missing.

推荐答案

正如BallpointBen指出的那样,sklearn.impute尚未在最新的稳定版本(0.19.1)中发布.当前仅在0.20.dev0中受支持.

As BallpointBen pointed out, sklearn.impute is not yet released in the latest stable release (0.19.1). Currently it's supported only in 0.20.dev0.

这篇关于得到"ModuleNotFoundError:没有名为'sklearn.impute'的模块".尽管已安装了最新的sklearn(0.19.1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆