Ask Your Question

Revision history [back]

You can install openmpi using your system's package manager, and run

sage -pip install mpi4py

to install mpi4py. Then you can run a Python script, say, by

mpirun -np 4 ./sage -python

(assuming the sage binary is in the current directory).

Note that in order to use Sage stuff in a Python script, one should import sage.all first.