How#

How to install a library#

To install a library from the Python Package Index:

Tip

$ python -m pip install <library>

For example, to install `ciw` (a queuing-systems library):

```console
$ python -m pip install ciw

If you have not already initialised a uv project in your working directory, do so first (this is a one-time step):

Tip

$ uv init --no-package

Then add a library:

```{tip}
```console
$ uv add <library>

For example:

```console
$ uv add ciw

This installs the library and records it in pyproject.toml. To install a library without adding it as a permanent dependency use uv pip install <library> instead.

Attention

Well documented libraries will always have installation instructions. It is recommended to read those before installing a library.