pprofile3 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pprofile3: command not found
or when using sudo you get the following error message
sudo: pprofile3: command not found
Solutions to pprofile3: command not found
How To Fix pprofile3: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pprofile3 is provided by python3-pprofile package.
python3-pprofile is:
Line granularity allows locating precisely where time is spent in code. Thread awareness automatically propagates profiling to all threads (all threads in statistic mode, or threads spawned by profiled code in deterministic mode).
Deterministic profiling gives precise measures, but at a large speed cost (best used on minimal test scenario).
Statistic profiling gives rough measure, but has an extremely low overhead (suitable for live code profiling).
Does not require marking methods to profile, allowing non-method profiling (module imports, class & function declarations and other module-level code).
This package installs the library for Python 3.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-pprofile
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-pprofile.
sudo apt -y install python3-pprofile
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-pprofile
Summary
In this tutorial we learn how to fix pprofile3 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.