Hi,

I am on ubuntu 10.04

I installed
apt-get install python-numpy  python-scipy
easy_install scikit-learn


When I import the followig, I get the below error.  How do I resolve?
from sklearn import svm

Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from sklearn import svm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/usr/local/lib/python2.6/dist-packages/scikit_learn-0.11-py2.6-linux-x86_64.egg/sklearn/__init__.py",
line 17, in <module>
    from .base import clone
  File 
"/usr/local/lib/python2.6/dist-packages/scikit_learn-0.11-py2.6-linux-x86_64.egg/sklearn/base.py",
line 11, in <module>
    from .metrics import r2_score
  File 
"/usr/local/lib/python2.6/dist-packages/scikit_learn-0.11-py2.6-linux-x86_64.egg/sklearn/metrics/__init__.py",
line 6, in <module>
    from .metrics import confusion_matrix, roc_curve, auc, precision_score, \
  File 
"/usr/local/lib/python2.6/dist-packages/scikit_learn-0.11-py2.6-linux-x86_64.egg/sklearn/metrics/metrics.py",
line 17, in <module>
    from ..utils import check_arrays
  File 
"/usr/local/lib/python2.6/dist-packages/scikit_learn-0.11-py2.6-linux-x86_64.egg/sklearn/utils/__init__.py",
line 9, in <module>
    from .murmurhash import murmurhash3_32
  File "numpy.pxd", line 151, in init sklearn.utils.murmurhash
(sklearn/utils/murmurhash.c:4773)
ValueError: numpy.dtype has the wrong size, try recompiling

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to