hypothesis command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
hypothesis: command not found
or when using sudo you get the following error message
sudo: hypothesis: command not found
Solutions to hypothesis: command not found
How To Fix hypothesis: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu hypothesis is provided by python3-hypothesis package.
python3-hypothesis is:
Hypothesis is a library for testing your Python code against a much larger range of examples than you would ever want to write by hand. It’s based on the Haskell library, Quickcheck, and is designed to integrate seamlessly into your existing Python unit testing work flow.
Hypothesis is both extremely practical and also advances the state of the art of unit testing by some way. It’s easy to use, stable, and extremely powerful. If you’re not using Hypothesis to test your project then you’re missing out.
This package contains the Python 3 module.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-hypothesis
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-hypothesis.
sudo apt -y install python3-hypothesis
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-hypothesis
Summary
In this tutorial we learn how to fix hypothesis command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.