pygalmesh command not found

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

Introduction

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

pygalmesh: command not found

or when using sudo you get the following error message

sudo: pygalmesh: command not found

Solutions to pygalmesh: command not found

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

In Ubuntu pygalmesh is provided by python3-pygalmesh package.

python3-pygalmesh is:

pygalmesh makes it easy to create high-quality 3D volume and surface meshes.

CGAL offers two different approaches for mesh generation:

  • Meshes defined implicitly by level sets of functions.
  • Meshes defined by a set of bounding planes.

pygalmesh provides a front-end to the first approach, which has the following advantages and disadvantages:

  • All boundary points are guaranteed to be in the level set within any specified residual. This results in smooth curved surfaces.
  • Sharp intersections of subdomains (e.g., in unions or differences of sets) need to be specified manually (via feature edges, see below), which can be tedious.

On the other hand, the bounding-plane approach (realized by mshr), has the following properties:

  • Smooth, curved domains are approximated by a set of bounding planes, resulting in more of less visible edges.
  • Intersections of domains can be computed automatically, so domain unions etc. have sharp edges where they belong.

pygalmesh and mshr are therefore complementary.

pygalmesh also interfaces CGAL’s 3D periodic mesh generation.

This package installs the pygalmesh module for Python 3.

It also provides the utility scripts pygalmesh-from-inr and pygalmesh-volume-from-surface for generating volume meshes from INR or surface meshes.

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

sudo apt-get -y install python3-pygalmesh

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

You can also use apt command to install python3-pygalmesh.

sudo apt -y install python3-pygalmesh

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

sudo aptitude install python3-pygalmesh

Summary

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