yappi command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
yappi: command not found
or when using sudo you get the following error message
sudo: yappi: command not found
Solutions to yappi: command not found
How To Fix yappi: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu yappi is provided by python3-yappi package.
python3-yappi is:
Yappi stands for Yet Another Python Profiler. It supports Multithread/CPU time profiling.
CPython standard distribution comes with three profilers. cProfile, Profile and hotshot. cProfile is implemented as a C module based on lsprof, Profile is in pure Python and hotshot can be seen as a small subset of a cProfile.
The major issue is that all of these profilers lack support for multi-threaded programs and CPU time.
If you want to profile a multi-threaded application, you must give an entry point to these profilers and then maybe merge the outputs. None of these profilers are designed to work on long-running multi-threaded application. It is impossible to profile an application retrieve the statistics then stop and then start later on the fly (without affecting the profiled application).
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-yappi
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-yappi.
sudo apt -y install python3-yappi
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-yappi
Summary
In this tutorial we learn how to fix yappi command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.