Skip to main content
Help us improve Python packaging – donate today!

PETSc for Python

Project Description

Python bindings for PETSc.

Install

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+https://bitbucket.org/petsc/petsc
$ pip install --no-deps git+https://bitbucket.org/petsc/petsc4py

or:

$ 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

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, J. Brown, P. Brune, K. Buschelman, L. Dalcin, V. Eijkhout, W. Gropp, D. Karpeyev, D. Kaushik, M. Knepley, D. May, L. Curfman McInnes, R. Mills, T. Munson, K. Rupp, P. Sanan, B. Smith, S. Zampini, H. Zhang, and H. Zhang, PETSc Users Manual, ANL-95/11 - Revision 3.9, 2018. http://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf

Release history Release notifications

This version
History Node

3.9.0

History Node

3.8.1

History Node

3.8.0

History Node

3.7.0

History Node

3.6.0

History Node

3.5.1

History Node

3.5

History Node

3.4

History Node

3.3.1

History Node

3.3

History Node

1.2

History Node

1.1.2

History Node

1.1.1

History Node

1.1

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

0.7.5

History Node

0.7.4

History Node

0.7.2

History Node

0.7.1

History Node

0.7.0

History Node

0.6.3

History Node

0.6.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
petsc4py-3.9.0.tar.gz (1.6 MB) Copy SHA256 hash SHA256 Source None Apr 22, 2018

Supported by

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