Laura Fava
2016-02-25 15:40:10 UTC
Hi,
I have installed scikit-learn, but I cannot import it because I am receiving the following error:
$ nosetests -v sklearn
Failure: ValueError (numpy.dtype has the wrong size, try recompiling) ... ERROR
======================================================================
ERROR: Failure: ValueError (numpy.dtype has the wrong size, try recompiling)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/loader.py", line 407, in loadTestsFromName
module = resolve_name(addr.module)
File "/Library/Python/2.7/site-packages/nose/util.py", line 312, in resolve_name
module = __import__('.'.join(parts_copy))
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
----------------------------------------------------------------------
Ran 1 test in 0.001s
FAILED (errors=1)
My operating system is OS X Yosemite version 10.10.5.
numpy version: 1.10.4
scipy version: 0.17.0
scikit-learn version: 0.17.1
I used pip install -U scikit-learn.
I've tried uninstalling and reinstalling scipy (and numpy) and scikit-learn, but I still get the same error. I appreciate any help in how I can get a working installation of scikit-learn.
Thank you,
Laura
I have installed scikit-learn, but I cannot import it because I am receiving the following error:
$ nosetests -v sklearn
Failure: ValueError (numpy.dtype has the wrong size, try recompiling) ... ERROR
======================================================================
ERROR: Failure: ValueError (numpy.dtype has the wrong size, try recompiling)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/nose/loader.py", line 407, in loadTestsFromName
module = resolve_name(addr.module)
File "/Library/Python/2.7/site-packages/nose/util.py", line 312, in resolve_name
module = __import__('.'.join(parts_copy))
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
----------------------------------------------------------------------
Ran 1 test in 0.001s
FAILED (errors=1)
My operating system is OS X Yosemite version 10.10.5.
numpy version: 1.10.4
scipy version: 0.17.0
scikit-learn version: 0.17.1
I used pip install -U scikit-learn.
I've tried uninstalling and reinstalling scipy (and numpy) and scikit-learn, but I still get the same error. I appreciate any help in how I can get a working installation of scikit-learn.
Thank you,
Laura