dh_python3 command not found
In this troubleshooting guide we learn how to fix dh_python3 command not found error message
Introduction
When you run more command in linux terminal / console, you get the following error message
dh_python3: command not found
or when using sudo you get the following error message
sudo: dh_python3: command not found
Solutions to dh_python3: command not found
How To Fix dh_python3: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dh_python3 is provided by dh-python package.
dh-python is:
This package contains:
- pybuild - invokes various build systems for requested Python versions in order to build modules and extensions
- dh_python2 - calculates Python 2.X dependencies for Debian packages, adds maintainer scripts to byte compile files, etc.
- dh_python3 - calculates Python 3.X dependencies for Debian packages, adds maintainer scripts to byte compile files, etc.
- dh_pypy - calculates PyPy dependencies for Debian packages, adds maintainer scripts to byte compile files, etc.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dh-python
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dh-python.
sudo apt -y install dh-python
Or if you have aptitude installed you can use the following command.
sudo aptitude install dh-python
Summary
In this tutorial we learn how to fix dh_python3 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.