Registry / data / mkl-static

mkl-static

JSON →
library2025.3.1pypiunverified

mkl-static provides the static libraries for Intel® oneAPI Math Kernel Library (MKL). MKL is a highly optimized library of mathematical functions (BLAS, LAPACK, FFTs, etc.) essential for high-performance computing. It is primarily used as a backend for scientific Python libraries like NumPy and SciPy to deliver maximum performance, rather than being directly imported in Python. The current version is 2025.3.1, and it's maintained by Intel as part of their oneAPI ecosystem.

pip install mkl-static
INSTALL
IMPORT
SIG · MKL-STATIC
M
mkl-static
dataenv2025.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

mkl-static does not provide direct Python imports. Its quickstart involves demonstrating how a Python library, such as NumPy, is configured to use the MKL backend. This code snippet prints NumPy's configuration, which should show 'mkl_info' if it's correctly linked to MKL.

import numpy as np print('NumPy version:', np.__version__) print('NumPy configuration:\n', np.__config__.show()) # Expected output for MKL linkage will show 'mkl_info' or similar entries.
Debug
Known issues
gotchaThe `mkl-static` package does NOT provide any direct Python imports or modules. It solely provides the underlying MKL binary libraries for other Python packages (like NumPy, SciPy, scikit-learn) to link against during their installation or at runtime.
fix
Do not attempt to `import mkl-static`. Instead, ensure your numerical Python libraries are built or configured to use MKL. Check `numpy.__config__.show()` to verify MKL linkage.
affects: All versions
breakingIncorrect MKL setup can lead to performance degradation or runtime errors if a library expects MKL but finds a different BLAS/LAPACK implementation, or none at all.
fix
Ensure that if you intend to use MKL, your Python packages (e.g., NumPy, SciPy) are installed from sources that are built against MKL (e.g., conda-forge often provides MKL-enabled builds) or explicitly configured to link to the `mkl-static` binaries. The `mkl-service` package can sometimes help manage MKL threading.
affects: All versions
gotchaMixing `mkl-static` with other BLAS/LAPACK providers (like OpenBLAS or netlib LAPACK) or MKL versions in the same environment can lead to subtle bugs or crashes.
fix
Use a dedicated virtual environment. If using Conda, let Conda manage MKL dependencies via `conda install numpy scipy mkl`. If using pip, ensure a consistent environment. Intel's `mkl-service` package provides utilities to manage MKL runtime behavior.
affects: All versions
Errors
Common errors & fixes
MKL FATAL ERROR: Cannot load libmkl_intel_thread.so or libmkl_intel_lp64.so.
The Python environment or the calling library (e.g., NumPy) expects MKL, but the MKL libraries are not found in the system's library paths or are incompatible.
fix
Ensure `mkl-static` is installed. Check that relevant environment variables like `LD_LIBRARY_PATH` (Linux) or `DYLD_LIBRARY_PATH` (macOS) include the MKL library path, or use `conda install mkl-static` within a conda environment, which typically handles library paths automatically. Alternatively, explicitly link the dependent library against MKL.
NumPy/SciPy performance is lower than expected, even with MKL installed.
The Python package (e.g., NumPy) is not actually linked against MKL, even if `mkl-static` is present in the environment. It might be linked to a generic or different BLAS/LAPACK implementation.
fix
Run `import numpy as np; np.__config__.show()`. Look for `mkl_info` to confirm MKL linkage. If absent, you might need to reinstall NumPy/SciPy from a source that explicitly builds against MKL (e.g., `conda install numpy scipy mkl` or using specific wheels that bundle MKL).
ImportError: DLL load failed while importing _mkl_service: The specified module could not be found.
This error typically refers to the `mkl-service` package, not `mkl-static`. `mkl-service` provides Python bindings to control MKL. This error occurs when the MKL dynamic libraries are not found by `mkl-service`.
fix
Ensure that `mkl-static` (or another MKL provider) is correctly installed and its libraries are discoverable in your system's PATH (Windows) or LD_LIBRARY_PATH (Linux). If using Conda, `conda install mkl-service` usually resolves this by pulling in necessary MKL dependencies.
Upgrade
Version history
2025.3.1latest on PyPI · released Jan 22, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
mkl-static — pip install mkl-static · libregistry