Skip to content

patch_sklearn() ImportError: DLL load failed while importing _daal4py: The specified module could not be found. #2872

@quangtuan202

Description

@quangtuan202

I have installed the latest version by : pip install scikit-learn-intelex
When I run :

from sklearnex import patch_sklearn
patch_sklearn()

The following error occurred, it said that daal4py was not found. As far as I know, daal4py is deprecated and is not required for the latest scikit-learn-intelex.

from sklearnex import patch_sklearn

File "C:\Users\tuandq\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearnex_init_.py", line 20, in
from . import utils
File "C:\Users\tuandq\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearnex\utils_init_.py", line 17, in
from .validation import assert_all_finite
File "C:\Users\tuandq\AppData\Local\Programs\Python\Python312\Lib\site-packages\sklearnex\utils\validation.py", line 25, in
from daal4py.sklearn.utils import daal_check_version, sklearn_check_version
File "C:\Users\tuandq\AppData\Local\Programs\Python\Python312\Lib\site-packages\daal4py_init
.py", line 54, in
from daal4py._daal4py import *
ImportError: DLL load failed while importing _daal4py: The specified module could not be found.

I also tried to install daal4py with the latest version found on Pypi which is "daal4py-2024.7.0-py312-none-win_amd64.whl" but it requires the older version of daal:

ERROR: Could not find a version that satisfies the requirement daal==2024.7.0 (from daal4py) (from versions: none)
ERROR: No matching distribution found for daal==2024.7.0

Checking packages installed:

pip show scikit-learn-intelex

Name: scikit-learn-intelex
Version: 2025.10.0
Summary: Intel® Extension for Scikit-learn is a seamless way to speed up your Scikit-learn application.
Home-page: https://github.com/intel/scikit-learn-intelex
Author: Intel Corporation
Author-email: onedal.maintainers@intel.com
License: Apache-2.0
Location: C:\Users\tuandq\AppData\Local\Programs\Python\Python312\Lib\site-packages
Requires: daal, numpy, scikit-learn
Required-by:

pip show daal

Name: daal
Version: 2025.10.0
Summary: Intel® oneAPI Data Analytics Library
Home-page: https://github.com/uxlfoundation/oneDAL
Author: Intel Corporation
Author-email: scripting@intel.com
License: Intel Simplified Software License
Location: C:\Users\tuandq\AppData\Local\Programs\Python\Python312\Lib\site-packages
Requires: tbb
Required-by: scikit-learn-intelex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions