python3-unidiff command not found

In this troubleshooting guide we learn how to fix python3-unidiff command not found error message

Introduction

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

python3-unidiff: command not found

or when using sudo you get the following error message

sudo: python3-unidiff: command not found

Solutions to python3-unidiff: command not found

How To Fix python3-unidiff: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu python3-unidiff is provided by python3-unidiff package.

python3-unidiff is:

Simple Python library to parse and interact with unified diff data

Python’s standard library has a difflib module which generates diffs, but cannot read or apply existing patch files. This module can do that.

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

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

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

sudo apt -y install python3-unidiff

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

sudo aptitude install python3-unidiff

Summary

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