xref: /petsc/src/binding/petsc4py/docs/source/install.rst (revision 4eb0d2c2304cd9d92205b5b9982f0c1174eb6e0e)
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