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
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to