How to Install mlflow in Python

v3.11.1 Data & Science Python >=3.10

MLflow is an open source platform for the complete machine learning lifecycle

Install pip install mlflow

What is mlflow?

MLflow is an open source platform for the complete machine learning lifecycle

The Open Source AI Engineering Platform for Agents, LLMs & Models

MLflow is the largest open source AI engineering platform for agents, LLMs, and ML models. MLflow enables teams of all sizes to debug, evaluate, monitor, and optimize production-quality AI applications while controlling costs and managing access to models and data. With over 60 million monthly downloads, thousands of organizations rely on MLflow each day to ship AI to production with confidence.

MLflow's comprehensive feature set for agents and LLM applications includes production-grade observability, evaluation, prompt management, prompt optimization and an AI Gateway for managing costs and model access. Learn more at MLflow for LLMs and Agents.

Quick Start

Minimal example to get started with mlflow:

import mlflow

print(mlflow.__version__)

Installation

pip (standard)

pip install mlflow

Virtual environment (recommended)

python -m venv venv
source venv/bin/activate   # Windows: venv\Scripts\activate
pip install mlflow

pip3

pip3 install mlflow

conda

conda install -c conda-forge mlflow

Poetry

poetry add mlflow

Dependencies

Installing mlflow will also install these packages:

Verify the Installation

After installing, confirm the package is available:

python -c "import mlflow; print(mlflow.__version__)"

If this prints a version number, installation succeeded. If you see a ModuleNotFoundError, see the errors section below.

Installation Errors

Common errors when installing mlflow with pip.

ModuleNotFoundError: No module named 'mlflow'

Cause: The package is not installed in the current Python environment.

Fix: Run pip install mlflow. If using a virtual environment, ensure it is activated first.

ModuleNotFoundError: No module named 'mlflow' (installed but still failing)

Cause: pip installed the package into a different Python than the one running your script.

Fix: Use python -m pip install mlflow to install into the interpreter you are running.

ImportError: cannot import name 'X' from 'mlflow'

Cause: The function or class does not exist in the installed version.

Fix: Check the version with pip show mlflow and upgrade with pip install --upgrade mlflow.

pip: command not found

Cause: pip is not in PATH or Python was not added to PATH during installation.

Fix: Try python -m pip install mlflow. On macOS/Linux try pip3.

PermissionError: [Errno 13] Permission denied

Cause: No write access to the system Python package directory.

Fix: Use a virtual environment, or add --user: pip install --user mlflow

SSL: CERTIFICATE_VERIFY_FAILED

Cause: pip cannot verify PyPI's SSL certificate — common behind corporate proxies.

Fix: Try: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org mlflow

MemoryError when loading data

Cause: Dataset is too large to fit in RAM.

Fix: Read in chunks, filter columns on load, or consider Polars/Dask for out-of-core processing.

Recent Releases

VersionReleased
3.11.0 2026-04-07
3.11.1 latest 2026-04-07
3.11.0rc1 2026-04-01
3.11.0rc0 2026-03-16
3.10.1 2026-03-05

Full release history on PyPI →

Manage mlflow

Upgrade to latest version

pip install --upgrade mlflow

Install a specific version

pip install mlflow==3.11.1

Uninstall

pip uninstall mlflow

Check what is installed

pip show mlflow

Last updated: 2026-04-11 • Data from PyPI