Installing pyadjoint


To use dolfin-adjoint with FEniCS, consult the dolfin-adjoint documentation.


Pyadjoint is automatically installed in Firedrake. No separate installation is required.

PIP (all platforms)

Install dolfin-adjoint and its Python dependencies with pip:

pip install git+

Test your installation by running:

python3 -c "import fenics_adjoint"

Optional dependencies:

Source code

The source code of pyadjoint is available on