run-escript3-mpi command not found

In this troubleshooting guide we learn how to fix run-escript3-mpi command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

run-escript3-mpi: command not found

or when using sudo you get the following error message

sudo: run-escript3-mpi: command not found

Solutions to run-escript3-mpi: command not found

How To Fix run-escript3-mpi: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu run-escript3-mpi is provided by python3-escript-mpi package.

python3-escript-mpi is:

Escript is a programming tool for implementing mathematical models in Python using the finite element method (FEM). Because users do not access the data structures it is very easy to use and scripts can run on desktop computers as well as highly parallel supercomputer without changes. Application areas for escript include earth mantle convection, geophysical inversion, earthquakes, porous media flow, reactive transport, plate subduction, erosion, and tsunamis.

Scripts can be executed in parallel (on varying numbers of threads or nodes) without any special modifications.

Escript now includes the esys.downunder module for 3D inversion of geophysical data sets. The current version supports gravity, magnetic and joint inversion.

This package contains the commands and libraries for Python3 with both OpenMP threading and MPI multiprocess support.

To fix this problem, we can install more using the command below.

sudo apt-get -y install python3-escript-mpi

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install python3-escript-mpi.

sudo apt -y install python3-escript-mpi

Or if you have aptitude installed you can use the following command.

sudo aptitude install python3-escript-mpi

Summary

In this tutorial we learn how to fix run-escript3-mpi command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.