繁体   English   中英

Python scikit-learn Imputer 导入错误

[英]Python scikit-learn Imputer import error

我有一个愚蠢的问题。 我正在使用 Intellij IDE 开发 Pyhton。 我正在尝试导入以下内容:

 from sklearn.preprocessing import Imputer

但是,我收到以下错误:

回溯(最近一次调用最后一次): from sklearn.preprocessing import Imputer

你能帮忙解决这个问题吗?

解决方案是使用最新版本的scikit-learn库。 使用以下命令安装它(有时在pip之前需要sudo ):

pip (or, pip3) install scikit-learn==0.19.1

= 符号必须替换为 ==

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM