ImportError: cannot import name 'logsumexp' when importing sklearn.model_selection

I tried to import sklearn.model_selectionwith Jupiter Notebook in anaconda environment using python 3.5. But I was first warned that I did not have a module "model_selection". So I did conda update scikit-learn.

After that I received a message ImportError: cannot import name 'logsumexp'when importing sklearn.model_selection.

I reinstalled sklearnand scipy, but still got the same error message. May I consult?

Thank!

+6
source share
6 answers

I ran into the same problem just now. After I updated scikit-learnand tried import sklearn.model_selection, an ImportError appeared.

.

. , .

+8

, 0.18.2 ( ):

pip uninstall scikit-learn
pip install scikit-learn==0.18.2
+1

:

scikit-learn==0.18.2
scipy==1.2.0
+1

Spyder . .

0

. Anaconda. pip conda .

pip install scikit-learn --upgrade
pip install scipy --upgrade
pip install sklearn --upgrade

conda update scikit-learn
conda update scipy
0

, hmm hmmlearn, scipy, . , . ( , , . - Ubuntu 16.04, anaconda3.)

0

Source: https://habr.com/ru/post/1673260/


All Articles