jsonschema command not found

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

Introduction

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

jsonschema: command not found

or when using sudo you get the following error message

sudo: jsonschema: command not found

Solutions to jsonschema: command not found

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

In Ubuntu jsonschema is provided by python3-jsonschema package.

python3-jsonschema is:

JSON Schema is a specification for a JSON-based format for defining the structure of JSON data. JSON Schema provides a contract for what JSON data is required for a given application and how it can be modified, much like what XML Schema provides for XML. JSON Schema is intended to provide validation, documentation, and interaction control of JSON data.

This package contains the Python 3.x module.

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

sudo apt-get -y install python3-jsonschema

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

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

sudo apt -y install python3-jsonschema

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

sudo aptitude install python3-jsonschema

Summary

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