tabulate command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
tabulate: command not found
or when using sudo you get the following error message
sudo: tabulate: command not found
Solutions to tabulate: command not found
How To Fix tabulate: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu tabulate is provided by python3-tabulate package.
python3-tabulate is:
Pretty-print tabular data in Python, a library and a command-line utility. The main use cases of the library are:
- printing small tables without hassle: just one function call, formatting is guided by the data itself
- authoring tabular data for lightweight plain-text markup: multiple output formats suitable for further editing or transformation
- readable presentation of mixed textual and numeric data: smart column alignment, configurable number formatting, alignment by a decimal point
This package installs the library for Python 3, and the cli tool.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-tabulate
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-tabulate.
sudo apt -y install python3-tabulate
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-tabulate
Summary
In this tutorial we learn how to fix tabulate command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.