使用scikit-learn群集程序包时出错

时间:2014-07-15 19:59:00

标签: python cluster-analysis scikit-learn

我想在mac终端上使用scikit-learn包。但是,我在执行示例程序时遇到错误。示例程序的链接。 http://scikit-learn.org/stable/auto_examples/cluster/plot_dbscan.html#example-cluster-plot-dbscan-py

Traceback (most recent call last):
  File "plot_dbscan.py", line 14, in <module>
    from sklearn.cluster import DBSCAN
  File "/Library/Python/2.7/site-packages/sklearn/cluster/__init__.py", line 6, in <module>
    from .spectral import spectral_clustering, SpectralClustering
  File "/Library/Python/2.7/site-packages/sklearn/cluster/spectral.py", line 13, in <module>
    from ..utils import check_random_state, as_float_array
  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

0 个答案:

没有答案