Jupyter Notebook ModuleNotFoundError: No module named 'sklearn.impute'
Jupyter Notebook ModuleNotFoundError: No module named 'sklearn.impute'
I'm importing the sklean.impute.SimpleImputer
using
sklean.impute.SimpleImputer
from sklearn.impute import SimpleImputer
But got an error
error: No module named 'sklearn.impute'.
Installed sklearn 0.19.1 using command !pip install sklearn
. How to see if it's the development version? Also, where can I access the logs?
!pip install sklearn
sklearn
sklearn
jupyter-notebook
SimpleImputer is available in development version of scikit. Which version you have installed?
– Vivek Kumar
Aug 24 at 11:02
1 Answer
1
The impute submodule is part of scikit-learn version 0.20. It is not on pypi yet, so if you have to use that function, install the dev version of scikit-learn by pip install git+https://github.com/scikit-learn/scikit-learn.git
pip install git+https://github.com/scikit-learn/scikit-learn.git
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Have you installed
sklearn
? If yes, please add more information on how you installedsklearn
and how you are runningjupyter-notebook
. attaching logs will help you in getting an answer quickly.– Talha Junaid
Aug 24 at 10:36