Install & Compatibility
Where this runs
tested against v2.0.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 41.5s · import 0.000s · 780MB
816MB installed
● package 816MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
mlflow.yml config
✓ kedro mlflow init
Configuration is done via CLI command, not direct import.
MlflowModelTrackingDataset
✓ from kedro_mlflow.io.models import MlflowModelTrackingDataset
✗ from kedro_mlflow.io import MlflowModelTrackingDataset
Common mistake: using wrong subpackage path.
Basic usage: configure Kedro project, create a Kedro session, and save a model using MlflowModelTrackingDataset.
from pathlib import Path
from kedro.framework.project import configure_project
configure_project(Path.cwd().name)
from kedro.framework.session import KedroSession
from kedro_mlflow.io.models import MlflowModelTrackingDataset
import mlflow
with KedroSession.create() as session:
context = session.load_context()
# Example: log a model with MlflowModelTrackingDataset
data_set = MlflowModelTrackingDataset(
filepath="model.pkl",
flavor="mlflow.sklearn",
model_name="test_model",
save_args={"registered_model_name": "test_model"}
)
# simulate using the dataset
import pandas as pd
data = pd.DataFrame({"a": [1, 2], "b": [3, 4]})
data_set.save(data)
print("Model saved to MLflow.")
kedro --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'kedro_mlflow'
kedro-mlflow not installed in the current environment.
fixpip install kedro-mlflow
ImportError: cannot import name 'MlflowModelTrackingDataset' from 'kedro_mlflow.io'
The correct import path is from kedro_mlflow.io.models.
fixUse `from kedro_mlflow.io.models import MlflowModelTrackingDataset`
mlflow.exceptions.MlflowException: Unsupported model URI scheme
Using an incorrect model URI format in load_args in MLflow 3.x.
fixUse `load_args={"model_uri": "models:/<model_name>/<version>"}` instead of `run_id`. Upgrade
Version history
2.0.3latest on PyPI · released May 10, 2026
Audit
Dependencies
kedrorequiredCore framework dependency; requires >=1.0.0
mlflowrequiredML tracking and model registry; requires >=3.0.0