Skip to content Skip to sidebar Skip to footer

Sklearn. Importerror: Dll Load Failed

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

Solution 1:

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


Solution 2:

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


Post a Comment for "Sklearn. Importerror: Dll Load Failed"