[英]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.