pygmsh-optimize command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pygmsh-optimize: command not found
or when using sudo you get the following error message
sudo: pygmsh-optimize: command not found
Solutions to pygmsh-optimize: command not found
How To Fix pygmsh-optimize: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pygmsh-optimize is provided by python3-pygmsh package.
python3-pygmsh is:
Gmsh is a powerful mesh generation tool with a scripting language that is notoriously hard to write.
The goal of pygmsh is to combine the power of Gmsh with the versatility of Python and to provide useful abstractions from the Gmsh scripting language so you can create complex geometries more easily.
This package installs the library for Python 3.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-pygmsh
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-pygmsh.
sudo apt -y install python3-pygmsh
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-pygmsh
Summary
In this tutorial we learn how to fix pygmsh-optimize command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.