I am trying to install scikit-learn and OpenCV onto my 64-bit Macbook in order to use them both from Python.
I've done the following:
sudo port install py27-scikit-learn
That seemed to complete OK. But now if I open Python and try to import sklearn
, I get an error:
python2.7
> import sklearn
ImportError: numpy.core.multiarray failed to import
I'm not sure how to debug this... can anyone suggest where to start? Incidentally, import numpy
or import numpy.core.multiarray
on their own in Python do not throw any errors.
UPDATE: it looks like an incorrect version of numpy might be the answer, but I'm not sure how to fix it.
UPDATE: Figured it out, had to delete an old version of numpy.