Source: https://h2corn.monicz.dev/installation/

# Installation

## Requirements

h2corn requires **CPython 3.11 or newer** on standard builds, or **CPython 3.14t or newer** on free-threaded builds. Prebuilt wheels are published for Linux, macOS, and Windows.

- Multi-worker supervision, rolling reload, and Unix domain sockets require Linux or macOS; Windows runs a single worker in-process.
- See [Python compatibility and wheels](https://h2corn.monicz.dev/about/compatibility/) for the exact interpreter and wheel matrix.

## Install h2corn

**uv**

```bash
uv add h2corn
```

**pip**

```bash
pip install h2corn
```

Verify the installed CLI:

```bash
h2corn --version
```

With [uv](https://docs.astral.sh/uv/), prefix commands with `uv run` (for example `uv run h2corn --version`).

## Optional `uvloop` extra

By default, [`--loop auto`](https://h2corn.monicz.dev/configuration/#option-loop) uses [uvloop](https://github.com/MagicStack/uvloop) when it is installed and falls back to the standard-library [`asyncio`](https://docs.python.org/3/library/asyncio.html) event loop. To install `uvloop` alongside h2corn on Linux or macOS:

**uv**

```bash
uv add "h2corn[uvloop]"
```

**pip**

```bash
pip install "h2corn[uvloop]"
```

Windows and some free-threaded Python builds do not have a `uvloop` wheel; those environments use `asyncio` automatically under `--loop auto`.

## Next steps

Continue to the [Quickstart](https://h2corn.monicz.dev/quickstart/) to run your first ASGI application over HTTP/1.1 and HTTP/2.
