However, import sklearn still gives me error. More details are given below. How do i resolve this?

六眼飞鱼酱① 提交于 2019-12-25 01:49:48

问题


I am using python3.6 (python3.8 was tried earlier for the same problem) on windows 7. I have installed joblib==0.14.0, numpy==1.17.4, scikit-learn==0.22 and scipy==1.3.3 for some Machine Learning project.

The error message i get when i try to import sklearn is:

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

Kindly advise how to resolve this problem?

Thank you.


回答1:


So it could be linked with missing OpenMP and we think that a quick fix will be to install VC++ (2015, 2017, 2019): https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads. Select the architecture of your system (32 bits -> x86; 64 bits -> x64)

More information will be given there: https://github.com/scikit-learn/scikit-learn/issues/15899



来源:https://stackoverflow.com/questions/59206367/however-import-sklearn-still-gives-me-error-more-details-are-given-below-how

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!