> For the complete documentation index, see [llms.txt](https://docs.zenml.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zenml.io/getting-started/installation.md). Agents can also search and read this documentation through its [MCP server](https://docs.zenml.io/~gitbook/mcp).

# Installation

Installing ZenML and getting started.

{% stepper %}
{% step %}

#### Install ZenML

ZenML currently supports **Python 3.10, 3.11, 3.12, 3.13, and 3.14**. Please make sure that you are using a supported Python version.

{% tabs %}
{% tab title="Installer script" %}
On macOS and Linux (including WSL), the quickest way to get started is the one-line installer:

```shell
curl -fsSL https://zenml.io/install-zenml | bash
```

The script installs [`uv`](https://docs.astral.sh/uv/) if it is missing, then installs `zenml[local]`, which runs pipelines without a server. Where it installs depends on where you run it:

* **Inside a Python project** (a directory with a `pyproject.toml` or `uv.lock`), ZenML is added to that project with `uv add`, so your pipelines run next to their own dependencies.
* **Anywhere else**, ZenML is installed as an isolated `uv` tool with `zenml` on your `PATH`. This is enough for logging in, managing stacks, and browsing runs. To run pipelines, install ZenML into your project.

It also installs the [ZenML agent skills](https://docs.zenml.io/reference/llms-txt.md#zenml-agent-skills) for coding agents such as Claude Code and Codex. The script does not log you in or start a server; it finishes by printing the next steps. Re-running it upgrades ZenML within your project's version constraints.

Pass options after `bash -s --`:

```shell
# Install a specific version
curl -fsSL https://zenml.io/install-zenml | bash -s -- --version=0.98.1

# Include the local UI server and an extra package
curl -fsSL https://zenml.io/install-zenml | bash -s -- --extras=server --with=scikit-learn

# Point the next steps at your ZenML server
curl -fsSL https://zenml.io/install-zenml | bash -s -- --server=https://zenml.example.com
```

Other useful flags are `--project` / `--global` to force where ZenML is installed, `--python=X.Y`, `--no-skills`, and `--no-modify-path`. Run with `--help` to see all options.

{% hint style="info" %}
To install ZenML, [Kitaru](https://kitaru.ai), or both from an interactive menu, use `curl -fsSL https://zenml.io/install | bash`. In non-interactive environments such as CI, pass `--products=zenml`, `--products=kitaru`, or `--products=zenml,kitaru`.
{% endhint %}
{% endtab %}

{% tab title="Base package" %}
**ZenML** is a Python package that can be installed using `pip` or other Python package managers:

```shell
pip install zenml
```

{% hint style="warning" %}
Installing the base package only allows you to connect to a [deployed ZenML server](https://docs.zenml.io/deploying-zenml/deploying-zenml.md). If you want to use ZenML purely locally, install it with the `local` extra:

```shell
pip install 'zenml[local]'
```

{% endhint %}
{% endtab %}

{% tab title="Local UI" %}
If you want to use the ZenML UI locally, install ZenML with the `server` extra:

```shell
pip install 'zenml[server]'
```

{% hint style="warning" %}
If you want to run a local server while running on a Mac with Apple Silicon (M1, M2, M3, M4), you should set the following environment variable:

```bash
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
```

You can read more about this [here](http://sealiesoftware.com/blog/archive/2017/6/5/Objective-C_and_fork_in_macOS_1013.html).
{% endhint %}
{% endtab %}

{% tab title="Jupyter Notebooks" %}
If you write your ZenML pipelines ins Jupyter notebooks, we recommend installing ZenML with the `jupyter` extra which includes improved CLI output and logs:

```shell
pip install 'zenml[jupyter]'
```

{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

#### Verifying Installations

Once the installation is completed, you can check whether the installation was successful either through Bash or Python:

{% tabs %}
{% tab title="Bash" %}

```bash
zenml version
```

{% endtab %}

{% tab title="Python" %}

```python
import zenml

print(zenml.__version__)
```

{% endtab %}
{% endtabs %}

If you would like to learn more about the current release, please visit our [PyPi package page.](https://pypi.org/project/zenml)
{% endstep %}
{% endstepper %}

## Running with Docker

`zenml` is also available as a Docker image hosted publicly on [DockerHub](https://hub.docker.com/r/zenmldocker/zenml). Use the following command to get started in a bash environment with `zenml` available:

```shell
docker run -it zenmldocker/zenml /bin/bash
```

If you would like to run the ZenML server with Docker:

```shell
docker run -it -d -p 8080:8080 zenmldocker/zenml-server
```

## Starting the local server

By default, ZenML runs without a server connected to a local database on your machine. If you want to access the UI locally, you need to start a local server:

```shell
# Make sure to have the `server` extra installed
pip install "zenml[server]"
zenml login --local  # opens the UI locally 
```

However, advanced ZenML features are dependent on a centrally deployed ZenML server accessible to other MLOps stack components. You can read more about it [here](https://docs.zenml.io/deploying-zenml/deploying-zenml.md). For the deployment of ZenML, you have the option to either [self-host](https://docs.zenml.io/deploying-zenml/deploying-zenml.md) it or register for a free [ZenML Pro](https://zenml.io/pro?utm_source=docs\&utm_medium=referral_link\&utm_campaign=cloud_promotion\&utm_content=signup_link) account.

<figure><img src="https://static.scarf.sh/a.png?x-pxid=f0b4f458-0a54-4fcd-aa95-d5ee424815bc" alt="ZenML Scarf"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zenml.io/getting-started/installation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
