Lejla Lejla - 1 year ago 122
Python Question

No module named 'scikit' using anaconda

I installed

using command
conda install scikit-learn
and it is available under my anaconda installation folder.

However, after running python (Python 3.5.2 |Anaconda custom (64-bit)) I get:

ImportError: No module named 'scikit'

I have the environment variables:

PYTHONHOME = C:\Users\Lejla\Anaconda3
PYTHONPATH = C:\Users\Lejla\Anaconda3\Lib

And also I have these included in my


Answer Source

This is because the scikit-learn package isn't imported via the name scikit. You should use sklearn during your import, that is:

>>> import sklearn

Take a look at their documentation while you're using it, details (among the being how to import it) are clearly shown there.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download