pysph command not found

In this troubleshooting guide we learn how to fix pysph command not found error message

Introduction

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

pysph: command not found

or when using sudo you get the following error message

sudo: pysph: command not found

Solutions to pysph: command not found

How To Fix pysph: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pysph is provided by pysph-viewer package.

pysph-viewer is:

It is implemented in Python and the performance critical parts are implemented in Cython.

PySPH is implemented in a way that allows a user to specify the entire SPH simulation in pure Python. High-performance code is generated from this high-level Python code, compiled on the fly and executed. PySPH also features optional automatic parallelization using mpi4py and Zoltan. The package contains viewer for PySPH.

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

sudo apt-get -y install pysph-viewer

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

You can also use apt command to install pysph-viewer.

sudo apt -y install pysph-viewer

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

sudo aptitude install pysph-viewer

Summary

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