pyjunitxml command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pyjunitxml: command not found
or when using sudo you get the following error message
sudo: pyjunitxml: command not found
Solutions to pyjunitxml: command not found
How To Fix pyjunitxml: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pyjunitxml is provided by python3-junitxml package.
python3-junitxml is:
junitxml is a Python module for recording test results from a stdlib unittest runner in a JUnit compatible XML stream.
This package contains the junitxml module for Python 3.x.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-junitxml
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-junitxml.
sudo apt -y install python3-junitxml
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-junitxml
Summary
In this tutorial we learn how to fix pyjunitxml command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.