I was trying to import sklearn.model_selection
with Jupiter Notebook under anaconda environment with python 3.5, but I was warned that I didn't have "model_selection" module, so I did conda update scikit-learn
.
After that, I received a message of ImportError: cannot import name 'logsumexp'
when importing sklearn.model_selection
.
I reinstalled sklearn
and scipy
, but still received the same error message. May I have some advice?
I came across exactly the same problem just now. After I updated scikit-learn
and tried to import sklearn.model_selection
, the ImportError appeared.
I just restarted anaconda and ran it again.
It worked. Don't know why.
It's not the best solution, but rolling back to 0.18.2 worked for me (after trying all above-mentioned solutions):
pip uninstall scikit-learn
pip install scikit-learn==0.18.2
Ultimately, it worked with version 0.18.2 of scikit-learn and version 1.2.0 of scipy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With