Tox Installation On A Debian, Ubuntu, Arch, Kali, Fedora, Raspbian And MacOS

Tox Installation On A Debian, Ubuntu, Arch, Kali, Fedora, Raspbian And MacOS

tox

Automate Python testing across multiple Python versions.
Use tox.ini to configure environments and test command.

Maintainer: Barry Warsaw



Section: python

Install tox

  • Debian apt-get install tox Click to copy
  • Ubuntu apt-get install tox Click to copy
  • Arch Linux pacman -S tox Click to copy
  • Kali Linux apt-get install tox Click to copy
  • Fedora dnf install tox Click to copy
  • Raspbian apt-get install tox Click to copy
  • macOS brew install tox Click to copy

Automate Python testing across multiple Python versions. Use tox.ini to configure environments and test command.

How to use tox?

Below are few example commands for tox that you can use in the terminal.

Run tests on all test environments:
toxClick to copy
Create a tox.ini configuration:
tox-quickstartClick to copy
List the available environments:
tox --listenvs-allClick to copy
Run tests on a specific environment (e.g. python 3.6):
tox -e py36Click to copy
Force the virtual environment to be recreated:
tox --recreate -e py27Click to copy
To install the latest version of tox in your favorite operating system just copy the tox installation command from above and paste it into terminal. It will download and install the latest version of tox 2026 package in your OS.