Installing Halide is straightforward using pip, assuming you have Python installed and ready:

pip install halide

However, these days I would strongly recommend using uv to manage your Python project.

If you do, you can start a new project and install Halide as follows:

uv init my-project
cd my-project
uv add halide

There are also a few more packages we will use in this book that you might want to set up right away:

uv add matplotlib numpy plotly

In the future, I will also post the source code for this book such that you can follow along by installing it as a project.