但是, import sklearn 仍然给我错误。下面给出更多细节。我该如何解决这个问题?

2023-12-26

我在 Windows 7 上使用 python3.6(之前尝试过 python3.8 来解决同样的问题)。我已经安装了 joblib==0.14.0、numpy==1.17.4、scikit-learn==0.22 和 scipy==1.3 .3 用于某些机器学习项目。

当我尝试导入 sklearn 时收到的错误消息是:

    from ._openmp_helpers import _openmp_parallelism_enabled
ImportError: DLL load failed: The specified module could not be found.

请告知如何解决这个问题?

谢谢。


因此它可能与缺少 OpenMP 有关,我们认为快速修复方法是安装 VC++(2015、2017、2019):https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads。选择系统的架构(32 位 -> x86;64 位 -> x64)

那里将提供更多信息:https://github.com/scikit-learn/scikit-learn/issues/15899 https://github.com/scikit-learn/scikit-learn/issues/15899

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

但是, import sklearn 仍然给我错误。下面给出更多细节。我该如何解决这个问题? 的相关文章

随机推荐