Python bindings for PETSc.
Install
If you have a working MPI implementation and the mpicc compiler wrapper is on your search path, it is highly recommended to install mpi4py first:
$ pip install mpi4py
Ensure you have NumPy installed:
$ pip install numpy
and finally:
$ pip install petsc petsc4py
Citations
If PETSc for Python been significant to a project that leads to an academic publication, please acknowledge that fact by citing the project.
L. Dalcin, P. Kler, R. Paz, and A. Cosimo, Parallel Distributed Computing using Python, Advances in Water Resources, 34(9):1124-1139, 2011. http://dx.doi.org/10.1016/j.advwatres.2011.04.013
S. Balay, S. Abhyankar, M. Adams, S. Benson, J. Brown, P. Brune, K. Buschelman, E. Constantinescu, L. Dalcin, A. Dener, V. Eijkhout, J. Faibussowitsch, W. Gropp, V. Hapla, T. Isaac, P. Jolivet, D. Karpeyev, D. Kaushik, M. Knepley, F. Kong, S. Kruger, D. May, L. Curfman McInnes, R. Mills, L. Mitchell, T. Munson, J. Roman, K. Rupp, P. Sanan, J Sarich, B. Smith, H. Suh, S. Zampini, H. Zhang, and H. Zhang, J. Zhang, PETSc/TAO Users Manual, ANL-21/39 - Revision 3.25, 2026. https://doi.org/10.2172/2998643, https://petsc.org/release/docs/manual/manual.pdf
Release files for petsc4py 3.25.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| petsc4py-3.25.5.tar.gz | 487.2 kB | Details |
Release files / petsc4py-3.25.5.tar.gz
| Download URL | petsc4py-3.25.5.tar.gz |
|---|---|
| Size | 487.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a542fcdcd9471f49e996ee251461a81bf0645e299701de45a9433adee94b4489
|
|
BLAKE2b-256 checksum How to use checksums |
938ee74cbd55d455903ca5256b2dee9364704851c669237e3c54c88a1ae07ffb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.7
|