sklearn. ImportError: DLL load failed

可紊 提交于 2020-07-22 08:32:33

问题


On this line

from sklearn.model_selection import train_test_split

I get error:

ImportError: DLL load failed while importing _openmp_helpers: The specified module could not be found.

How to fix it?

Python 3.8 (32 bit) on Windows 7 x64.


回答1:


I had the same problem and downgrading to version less than 0.22 solved the same Please downgrade the version of sklearn to 0.21 or less




回答2:


Installing the previous version of sklearn solved this for me.

Do it with: pip install -U scikit-learn==0.21rc2

Just to let you know, if you want to use it with Python 3.5 or never:

Warning

Scikit-learn 0.20 was the last version to support Python 2.7 and Python 3.4. Scikit-learn now requires Python 3.5 or newer.

https://scikit-learn.org/stable/install.html



来源:https://stackoverflow.com/questions/59280149/sklearn-importerror-dll-load-failed

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