Skip to content

Installation

You can install networkx-mermaid using either pip or uv.

Using pip

To install the library with pip, run the following command:

pip install networkx-mermaid

Using uv

If you're using uv, you can install the library with:

uv pip install networkx-mermaid

Installing Extras

The library also comes with optional dependencies for development, testing, and documentation. You can install these using the [<extra>] syntax.

For example, to install the dependencies required to build the documentation:

# With pip
pip install .[docs]

# With uv
uv pip install .[docs]