sip command not found

In this troubleshooting guide we learn how to fix sip command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

sip: command not found

or when using sudo you get the following error message

sudo: sip: command not found

Solutions to sip: command not found

How To Fix sip: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu sip is provided by sip-dev package.

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 the code generator tool needed to develop Python and Python 3 bindings with sip.

To fix this problem, we can install more using the command below.

sudo apt-get -y install sip-dev

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install sip-dev.

sudo apt -y install sip-dev

Or if you have aptitude installed you can use the following command.

sudo aptitude install sip-dev

Summary

In this tutorial we learn how to fix sip command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.