dh_sip3 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dh_sip3: command not found
or when using sudo you get the following error message
sudo: dh_sip3: command not found
Solutions to dh_sip3: command not found
How To Fix dh_sip3: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dh_sip3 is provided by python3-sip-dev package.
python3-sip-dev is:
SIP is a tool for generating bindings for C++ classes with some ideas borrowed from SWIG, but capable of tighter bindings because of its specificity towards C++ and Python.
SIP was originally designed to generate Python bindings for KDE and so has explicit support for the signal slot mechanism used by the Qt/KDE class libraries.
Features: - connecting Qt signals to Python functions and class methods - connecting Python signals to Qt slots - overloading virtual member functions with Python class methods - protected member functions - abstract classes - enumerated types - global class instances - static member functions.
This package contains sipdistutils and the development headers needed to develop Python 3 bindings with sip.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-sip-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-sip-dev.
sudo apt -y install python3-sip-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-sip-dev
Summary
In this tutorial we learn how to fix dh_sip3 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.