ImportError:DLL加载失败:找不到指定的过程

时间:2019-12-25 17:52:28

标签: machine-learning scikit-learn jupyter-notebook anaconda sklearn-pandas

我正在使用Jupyter执行以下代码,但出现错误

    1   2   3   4   5
1   6   7   8   9  10
2   7   9  11  13  15
3   8  11  14  17  20
4   9  13  17  21  25
5  10  15  20  25  30

发生错误:

import pandas as pd
from sklearn.tree import DecisionTreeClassifier 

music_data = pd.read_csv('music.csv')
X = music_data.drop(columns=['genre'])
y = music_data['genre']

model = DecisionTreeClassifier()
model.fit(X,y)
music_data

我正在使用Python 3.8.0和anaconda3,请有人告诉我这里出了什么问题

1 个答案:

答案 0 :(得分:0)

从错误日志来看,问题似乎出在此行:

from scipy.sparse.linalg import lsqr as sparse_lsqr

尝试卸载并重新安装scipynumpy

卸载:

pip uninstall numpy scipy

安装:

pip install -U numpy scipy