xref: /petsc/src/binding/petsc4py/docs/source/install.rst (revision c1fff1c61b7c73dce33b8662829f3364e0b146a8)
1Installation
2============
3.. _petsc4py_install:
4
5
6Using **pip**
7-------------
8
9You can use :program:`pip` to install :mod:`petsc4py` and its
10dependencies (:mod:`mpi4py` is optional but highly recommended)::
11
12  $ python -m pip install [--user] numpy mpi4py  (or pip install [--user] numpy mpi4py)
13  $ python -m pip install [--user] petsc petsc4py (or pip install [--user] petsc petsc4py)
14
15Note: One can build petsc4py via PETSc source build using the additional configure option --with-petsc4py=1
16
17
18
19