num2words command not found

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

Introduction

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

num2words: command not found

or when using sudo you get the following error message

sudo: num2words: command not found

Solutions to num2words: command not found

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

In Ubuntu num2words is provided by python3-num2words package.

python3-num2words is:

This package contains a Python library that converts numbers like 42 to words like forty-two. It supports multiple languages and can even generate ordinal numbers like forty-second (although this last feature is a bit buggy for some languages at the moment).

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-num2words

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

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

sudo apt -y install python3-num2words

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

sudo aptitude install python3-num2words

Summary

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