To install Prefect, run:

<CodeGroup>

```bash pip
pip install -U prefect
```

```bash uv
# add prefect to an existing virtual environment
uv pip install prefect

# add prefect to your pyproject.toml
uv add prefect
```


</CodeGroup>
