python3-unit2 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
python3-unit2: command not found
or when using sudo you get the following error message
sudo: python3-unit2: command not found
Solutions to python3-unit2: command not found
How To Fix python3-unit2: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu python3-unit2 is provided by python3-unittest2 package.
python3-unittest2 is:
unittest2 is an enhanced version of unittest including a standard test runner (automatic test discovery), class and module level fixtures (setUpClass / setUpModule etc), many powerful new assert methods, better resource management with addCleanups and a host of other new features. These new features are all going into the Python version of unittest in Python 2.7 and Python 3.2. The point of unittest2 is that it works with Python 2.4 - 2.6; you can use it now.
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-unittest2
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-unittest2.
sudo apt -y install python3-unittest2
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-unittest2
Summary
In this tutorial we learn how to fix python3-unit2 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.