问题描述
跑代码的时候发现总是莫名奇妙的中断程序,出现代码“Process finished with exit code -1066598274 (0xC06D007E)”,网上搜半天也能用的解决方案,后面逐句运行发现是调用sklearn的PCA算法时候出错。

解决方法
经过一上午的查找问题,发现是sklearn+numpy+scipy的版本没对应好。只对应其中两个也是不行的。我的版本是scikit-learn 1.0, numpy 1.21.2,scipy 1.7.1。

pip install scikit-learn==1.0
pip install numpy==1.21.2
pip install scipy==1.7.1

更多推荐

Pycharm 调用sklearn时出现Process finished with exit code -1066598274 (0xC06D007E)