从sklearn(下面)加载数据集模块时遇到一些问题以及@Jorge(ImportError: cannot import name murmurhash3_32)的常见问题
该线程的唯一评论询问他是如何安装sklearn的;我是按照安装文档(http://scikit-learn.org/dev/install.html)使用pip install -U scikit-learn
。
...来自? ipython --pylab
(以及最新的Enthought Canopy捆绑包)......
In [1]: from sklearn import datasets
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-1-9123d5038a5c> in <module>()
----> 1 from sklearn import datasets
C:\Users\Jeffrey\AppData\Local\Enthought\Canopy\User\lib\site-packages\sklearn\d
atasets\__init__.py in <module>()
5 """
6
----> 7 from .base import load_diabetes
8 from .base import load_digits
9 from .base import load_files
C:\Users\Jeffrey\AppData\Local\Enthought\Canopy\User\lib\site-packages\sklearn\d
atasets\base.py in <module>()
23 import numpy as np
24
---> 25 from ..utils import check_random_state
26
27
C:\Users\Jeffrey\AppData\Local\Enthought\Canopy\User\lib\site-packages\sklearn\u
tils\__init__.py in <module>()
8 import warnings
9
---> 10 from .murmurhash import murmurhash3_32
11 from .validation import (as_float_array, check_arrays, safe_asarray,
12 assert_all_finite, array2d, atleast2d_or_csc,
C:\Users\Jeffrey\numpy.pxd in init sklearn.utils.murmurhash (sklearn\utils\murmu
rhash.c:5033)()
ValueError: numpy.ufunc has the wrong size, try recompiling