繁体   English   中英

导入 sklearn.ensemble 时收到错误

[英]Receiving error when I am importing sklearn.ensemble

我收到以下错误。

from sklearn.ensemble import RandomForestRegressor

ImportError                               Traceback (most recent call last)
<ipython-input-67-89db614d07d0> in <module>()
----> 1 from sklearn.ensemble import RandomForestRegressor

3 frames
/usr/local/lib/python3.7/dist-packages/sklearn/tree/_classes.py in <module>()
     39 from ..utils.validation import check_is_fitted
     40 
---> 41 from ._criterion import Criterion
     42 from ._splitter import Splitter
     43 from ._tree import DepthFirstTreeBuilder

sklearn/tree/_criterion.pyx in init sklearn.tree._criterion()

cython_special.pyx in init scipy.special.cython_special()

ImportError: scipy.special._ufuncs_cxx does not export expected C variable _export_expit

---------------------------------------------------------------------------

大哥:我花了很多时间来实现这个问题。我告诉你,pip install scipy == 1.4.1。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM