ImportError: cannot import name murmurhash3_32

I am trying to use the sklearn.qda package in python. I installed it successfully, but when Itry imports it, I get the error message below. Can someone tell me what I have to do to fix this? Thanks in extended.

In [3]: from sklearn.qda import QDA
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-7d7abf937d66> in <module>()
----> 1 from sklearn.qda import QDA

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/qda.py in <module>()
     12 
     13 from .base import BaseEstimator, ClassifierMixin
---> 14 from .utils.fixes import unique
     15 from .utils import check_arrays, array2d
     16 

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/utils/__init__.py in <module>()
      7 import warnings
      8 
----> 9 from .murmurhash import murmurhash3_32
     10 from .validation import (as_float_array, check_arrays, safe_asarray,
     11                          assert_all_finite, array2d, atleast2d_or_csc,

ImportError: cannot import name murmurhash3_32
+4
source share
1 answer

I had the same problem, I run:

sudo pip install -U scikit-learn

and now everything is working fine

+2
source

All Articles