导入kerastuner时出错:似乎没有正确构建scikitlearn

2024-09-25 00:30:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试导入Kerastuner,但它显示

It seems that scikit-learn has not been built correctly.

If you have installed scikit-learn from source, please do not forget
to build the package before using it: run `python setup.py install` or
`make` in the source directory.

然后我运行python setup.py install 它说没有名为setup.py的文件 我已经安装了scikit learn和kerastuner。我被困在这里任何建议都会很好


Tags: installthepysourcethatsetupnotit
2条回答

尝试使用水蟒

conda install scikit-learn

因此,请尝试使用将python版本升级到3.9.1 64位,然后尝试使用pip install scikit LERN进行安装。我已经试过了,它对我有效

enter image description here

这就是我的工作方式

相关问题 更多 >