tox command not found

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

Introduction

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

tox: command not found

or when using sudo you get the following error message

sudo: tox: command not found

Solutions to tox: command not found

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

In Ubuntu tox is provided by tox package.

tox is:

Tox as is a generic virtualenv management and test command line tool you can use for:

  • checking your package installs correctly with different Python versions and interpreters
  • running your tests in each of the environments, configuring your test tool of choice
  • acting as a frontend to Continuous Integration servers, greatly reducing boilerplate and merging CI and shell-based testing.

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

sudo apt-get -y install tox

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

You can also use apt command to install tox.

sudo apt -y install tox

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

sudo aptitude install tox

Summary

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