pyfiglet command not found

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

Introduction

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

pyfiglet: command not found

or when using sudo you get the following error message

sudo: pyfiglet: command not found

Solutions to pyfiglet: command not found

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

In Ubuntu pyfiglet is provided by python3-pyfiglet package.

python3-pyfiglet is:

FIGLet is a program that creates large characters out of ordinary screen characters. It takes ASCII text and renders it in ASCII art fonts.

This is a Python 3 port of the original C figlet. It can be used on the commandline or as an Object Oriented driver library in your own programs.

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

sudo apt-get -y install python3-pyfiglet

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

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

sudo apt -y install python3-pyfiglet

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

sudo aptitude install python3-pyfiglet

Summary

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