nose2-3.8 command not found

In this troubleshooting guide we learn how to fix nose2-3.8 command not found error message

Introduction

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

nose2-3.8: command not found

or when using sudo you get the following error message

sudo: nose2-3.8: command not found

Solutions to nose2-3.8: command not found

How To Fix nose2-3.8: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nose2-3.8 is provided by python3-nose2 package.

python3-nose2 is:

Nose2 is testing library aimed at being compatible with unittest and providing additional features, such as timed tests, better testing for exceptions. It also provides fixture methods at the package, module, class or test case level, depending on the developer’s needs.

At an extended level, nose2 also provides a lot of builtin plugins to help with specific needs, including tests coverage, profiling, or doctests.

Nose2 is based on the Nose testsuite, which is no longer developed. It provides a better plugin API and supports Python2 and Python3 from the same codebase.

This package provides the python3 version of nose2.

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

sudo apt-get -y install python3-nose2

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

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

sudo apt -y install python3-nose2

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

sudo aptitude install python3-nose2

Summary

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