pypprint command not found

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

Introduction

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

pypprint: command not found

or when using sudo you get the following error message

sudo: pypprint: command not found

Solutions to pypprint: command not found

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

In Ubuntu pypprint is provided by python3-pprintpp package.

python3-pprintpp is:

Unlike pprint, pprintpp strives to emit a readable, largely PEP8-compliant, representation of its input.

It also has explicit support for: the collections module (defaultdict and Counter) and numpy arrays.

Unicode characters, when possible, will be printed un-escaped. This is done by checking both the output stream’s encoding (defaulting to utf-8) and the character’s Unicode category. An effort is made to print only characters which will be visually unambiguous: letters and numbers will be printed un-escaped, spaces, combining characters, and control characters will be escaped.

Subclassess of built-in collection types which don’t define a new repr will have their class name explicitly added to their repr (while custom repr methods will be respected).

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

sudo apt-get -y install python3-pprintpp

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

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

sudo apt -y install python3-pprintpp

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

sudo aptitude install python3-pprintpp

Summary

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