sklearn cannot import name _ellipsoid sklearn cannot import name _ellipsoid numpy numpy

sklearn cannot import name _ellipsoid


Did you try to reinstall scikit-learn? If you use pip, you can give the following commands a go:

python -m pip install --upgrade pippython -m pip install --upgrade --force-reinstall scikit-learn


I had the same problem. I solved the problem by updating scipy to the newest version.


This mostly happens when you have 2 versions of scipy one with pip and other with conda may be, just check the scipy lib its referring to or try and uninstall one if there are 2 scipy with different installers.

Also try and use the latest version of scipy