python中导入 train_test_split提示错误的解决

如下所示:

经测试,在python2中也是使用该方式导入train_test_split模块

补充知识:from sklearn.model_selection import train_test_split找不到模块

解决方案:

pip uninstall numpy

pip install numpy==1.16(或pip install numpy==1.14.5)

如果提示权限不够,‘[WinError 5]拒绝访问',则需打开管理员权限

以上这篇python中导入 train_test_split提示错误的解决就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持来客网。