Sklearn与numpy不兼容

时间:2016-05-13 19:12:48

标签: numpy scikit-learn scikits

每当我尝试使用$html .=" " . $masonry_size; $html .="'>"; $html .= "<div class='image_holder'>"; $html .= "<a class='portfolio_link_for_touch lightbox' href='".$large_image."' data-rel='prettyPhoto[" . $slug_list_ . "]' target='".$target."'>"; $html .= "<span class='image'>"; $html .= get_the_post_thumbnail(get_the_ID(), $image_size); $html .= "</span>"; //close span.image $html .= "</a>"; //close a.portfolio_link_for_touch $html .= "<span class='text_holder'>"; $html .= "<span class='text_outer'>"; $html .= "<span class='text_inner'>"; $html .= '<div class="hover_feature_holder_title">'; $html .= '<div class="hover_feature_holder_title_inner">'; $html .= '<'.$title_tag.' '.$title_styles.' class="portfolio_title"><a href="' . $portfolio_link . '" '.$title_styles.' target="'.$target.'">' . get_the_title() . '</a></'.$title_tag.'>'; $html .= $separator_html; $html .= '<span '.$category_style.' class="project_category">'; $k = 1; foreach ($terms as $term) { $html .= "$term->name"; if (count($terms) != $k) { $html .= ', '; } $k++; } $html .= '</span>'; //close span.project_category $html .= '</div>'; //close div.hover_feature_holder_title_inner $html .= '</div>'; //close div.hover_feature_holder_title $html .= "</span>"; //close span.text_inner $html .= "</span>"; //close span.text_outer $html .= "</span>"; //close span.text_holder $html .= "</div>"; //close div.image_holder $html .= "</article>"; endwhile; else: ?> 中的类时,我都会收到以下错误:

sklearn

我试图卸载numpy,scikit,sklearn并重新安装它,但它没有帮助。我将OSX作为操作系统。以下是我正在使用的软件包的版本:

  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

将每个软件包升级到最新版本都不起作用。 你知道我能做些什么吗?也许降级一些包?

互联网上有很多类似我的问题。但是,没有任何建议的安装/卸载修复我的问题。它必须是版本特定的。

0 个答案:

没有答案