Every time I try to use a class from sklearn
I get the following error:
File "/Library/Python/2.7/site-packages/sklearn/__init__.py", line 57, in <module>
from .base import clone
File "/Library/Python/2.7/site-packages/sklearn/base.py", line 11, in <module>
from .utils.fixes import signature
File "/Library/Python/2.7/site-packages/sklearn/utils/__init__.py", line 10, in <module>
from .murmurhash import murmurhash3_32
File "numpy.pxd", line 155, in init sklearn.utils.murmurhash (sklearn/utils/murmurhash.c:5029)
ValueError: numpy.dtype has the wrong size, try recompiling
I've tried to uninstall numpy, scikit, sklearn and reinstall it but it hasn't helped. I've OSX as an operating system. Here are the versions of the packages I'm using:
python 2.7.10
numpy: 1.11.0
pandas: 0.18.1
scipy: 0.17.1
scikit-learn: 0.17.1
sklearn: 0.0 (which is weird but correct: https://pypi.python.org/pypi/sklearn/)
Upgrading every package to the newest version doesn't work. Do you have any idea what I could do about this? Maybe downgrading some package?
There are a lot of questions like mine on the internet. However, none of the suggested installs/uninstalls fixed my problem. It must be something version-specific.