Sklearn installation in OSX

Viewed 1711

I have installed sklearn using the following commands (I tried both) but when I include it I receive the following error:

sudo port install py26-scikit-learn
or:
sudo port install py27-scikit-learn

The problem is:

>>> import sklearn
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named sklearn

You know what maybe wrong?

ANSWER: This worked for me:

sudo port select --set python python26
1 Answers
Related