【发布时间】:2021-09-09 06:50:43
【问题描述】:
我正在尝试使用 Jupyter notebook 的以下语法从 sklearn 模块导入线性回归库:
from sklearn.linear_model import LinearRegression
但我收到以下错误:
ModuleNotFoundError: No module named 'scipy.linalg._matfuncs_sqrtm_triu'
我已经多次成功安装了 scikit-learn 库,但问题仍然存在。
【问题讨论】:
-
你是如何安装
sklearn/scikit-learn的? -
我尝试使用 anaconda3 power shell 和系统 CMD 作为管理员运行这些命令:pip install scipy 和 conda install scipy
-
您是否搜索过您遇到的错误?你发现了什么?
标签: python scikit-learn scipy anaconda3