【问题标题】:Error when importing kerastuner : It seems that scikit-learn has not been built correctly导入 kerastuner 时出错:似乎 scikit-learn 没有正确构建
【发布时间】:2021-01-06 14:43:09
【问题描述】:

我尝试导入 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。我被困在这里任何建议都会很棒

【问题讨论】:

    标签: python keras keras-tuner


    【解决方案1】:

    所以尝试使用将 python 版本升级到 3.9.1 64 位,然后尝试使用 pip install scikit-learn 安装。我已经尝试过了,它对我有用...

    这对我来说是这样的。

    【讨论】:

    • 感谢您的努力,但这并不能回答我的问题
    • 你能详细说明一下现在出现的错误吗?
    【解决方案2】:

    尝试使用 Anaconda...

    conda install scikit-learn
    

    【讨论】:

    • 我使用了等效的 pip pip install scikit-learn
    • 不等价。你应该尽可能使用 Anaconda 频道
    猜你喜欢
    • 2021-04-02
    • 2017-06-08
    • 2016-04-09
    • 2015-08-26
    • 2013-11-01
    • 2021-08-16
    • 2016-08-22
    相关资源
    最近更新 更多