Q:

Python scikit learn import error

I am trying to learn text classification using SVM classifier, for this I am experimenting example code from sci-kit learn, but when I import following command 
from scikits.learn import svm

I get the error as shown in the following figure. 

FYI, I installed scikit-learn in Mac OS-X 10.8.5.I also can run following command without any error 
import sklearn.svm
import sklearn.cluster
import sklearn

Any suggestion will be greatly appreciate. Thanks. 

A:

Just import from sklearn import svm. The documentation you are refering to is about an old version of the library with a different namespace. The up to date version of this tutorial is maintained at: http://scipy-lectures.github.io/packages/scikit-learn/index.html

