How to import sklearn in python

python

#1

hello,

while trying to implement naive bayes in python I am unable to import sklearn.
I am using python 3.4.3 in Ubuntu 14.04 LTS.
The error i am getting:

I am very new to python and cannot figure out what the problem is.Is it something because of the OS or do I need to do something more to import.
Can somebody please help me with this??


#2

@pagal_guy,

You need to install libray “sklearn” first then import it. You can go through the installing instruction of sklearn by looking at this document.

Hope this helps!

Regards,
Ravi