cheetah3 command not found

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

Introduction

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

cheetah3: command not found

or when using sudo you get the following error message

sudo: cheetah3: command not found

Solutions to cheetah3: command not found

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

In Ubuntu cheetah3 is provided by python3-cheetah package.

python3-cheetah is:

Cheetah can be used as a standalone templating utility or referenced as a library from other Python applications. It has many potential uses, but web developers looking for a viable alternative to ASP, JSP, PHP and PSP are expected to be its principle user group.

Features:

  • Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other text-based format.
  • Cleanly separates content, graphic design, and program code.
  • Blends the power and flexibility of Python with a simple template language that non-programmers can understand.
  • Gives template writers full access to any Python data structure, module, function, object, or method in their templates.
  • Makes code reuse easy by providing an object-orientated interface to templates that is accessible from Python code or other Cheetah templates. One template can subclass another and selectively reimplement sections of it.
  • Provides a simple, yet powerful, caching mechanism that can dramatically improve the performance of a dynamic website.
  • Compiles templates into optimized, yet readable, Python code.

This package contains the Python 3 module.

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

sudo apt-get -y install python3-cheetah

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

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

sudo apt -y install python3-cheetah

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

sudo aptitude install python3-cheetah

Summary

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