Skip to main content

PETSc for Python

Project description

Python bindings for PETSc.


If you have a working MPI implementation and the mpicc compiler wrapper is on your search path, it highly recommended to install mpi4py first:

$ pip install mpi4py

Ensure you have NumPy installed:

$ pip install numpy

and finally:

$ pip install petsc petsc4py

You can also install the in-development version of petsc4py with:

$ pip install Cython numpy mpi4py
$ pip install --no-deps git+
$ pip install --no-deps git+


$ pip install Cython numpy mpi4py
$ pip install --no-deps
$ pip install --no-deps


If PETSc for Python been significant to a project that leads to an academic publication, please acknowledge that fact by citing the project.

Project details

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page