我收到以下错误。
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
---------------------------------------------------------------------------
发布于 2022-08-08 13:57:42
我花了很多时间来解决这个问题。让我告诉你pip install scipy == 1.4.1
。
https://stackoverflow.com/questions/70159609
复制相似问题