简体   繁体   中英

ModuleNotFoundError: No module named 'sklearn.experimental'

I have sklearn installed but still I have error:

ModuleNotFoundError: No module named 'sklearn.experimental'

when trying to run Jupyter notebook from Imputing missing values before building an estimator . I'm using pip for installation without any virtual environment.

Just realized my pip version of sklearn is 20.03 while latest is scikit-learn v0.21.3

I've upgraded sklearn with (in CMD):

python -m pip install scikit-learn --user --upgrade pip

I've had permission error using standard upgrade command. I had to restart Jupyter notebook kernel with clear output, run cells again, run again (in first cell in Jupyter Notebook):

%matplotlib inline

and than it was working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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