转载自:github
安装错误信息:
......
sklearn/cluster/_dbscan_inner.cpp:6029:24: error: ‘PyThreadState’ has no member named ‘exc_type’
tmp_type = tstate->exc_type;
^
sklearn/cluster/_dbscan_inner.cpp:6030:25: error: ‘PyThreadState’ has no member named ‘exc_value’
tmp_value = tstate->exc_value;
......
解决:
(1)前提:系统已安装好numpy,scipy
(2)安装Cython:
pip3 install cython
(3)安装sklearn:
pip3 install git+https://github.com/scikit-learn/scikit-learn
本文针对在安装sklearn过程中遇到的特定编译错误进行了详细解析,并提供了有效的解决方案,包括安装必要的依赖库Cython等步骤。

2448

被折叠的 条评论
为什么被折叠?



