inv command not found

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

Introduction

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

inv: command not found

or when using sudo you get the following error message

sudo: inv: command not found

Solutions to inv: command not found

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

In Ubuntu inv is provided by python3-invoke package.

python3-invoke is:

Invoke is a Python (2.6+ and 3.2+) task execution tool and library, drawing inspiration from various sources to arrive at a powerful and clean feature set.

Like Ruby’s Rake tool and Invoke’s own predecessor Fabric 1.x, it provides a clean, high level API for running shell commands and defining/organizing task functions from a tasks.py file.

From GNU Make, it inherits an emphasis on minimal boilerplate for common patterns and the ability to run multiple tasks in a single invocation.

Following the lead of most Unix CLI applications, it offers a traditional flag-based style of command-line parsing, deriving flag names and value types from task signatures.

Like many of its predecessors, it offers advanced features as well: namespacing, task aliasing, before/after hooks, parallel execution and more.

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

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

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

sudo apt -y install python3-invoke

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

sudo aptitude install python3-invoke

Summary

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