Reputation: 38165
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
Upvotes: 4
Views: 1722
Reputation: 6524
Make sure you are using the correct python binary. When you install scikits using macports, it becomes available in the macports version of python - not apple's. Use the port select command to change which python is the default when you simply call "python"
Upvotes: 4