PETSc for Python
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
$ 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+https://bitbucket.org/petsc/petsc $ pip install --no-deps git+https://bitbucket.org/petsc/petsc4py
$ pip install Cython numpy mpi4py $ pip install --no-deps https://bitbucket.org/petsc/petsc/get/master.tar.gz $ pip install --no-deps https://bitbucket.org/petsc/petsc4py/get/master.tar.gz
If PETSc for Python been significant to a project that leads to an academic publication, please acknowledge that fact by citing the project.