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 15If you already have downloaded PETSc simply add the option --download-petsc4py to the ./configure command you use for building PETSc. 16 17Note that though the command has --download it doesn't actually download anything, it uses the source 18in the directory src/binding/petsc4py. 19 20 21