Install libpythonqt-qtall-qt5-python2-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libpythonqt-qtall-qt5-python2-dev
Dynamic Python binding for the Qt framework - development
PythonQt offers an easy way to embed the Python scripting language into a C++ Qt applications. It makes heavy use of the QMetaObject system and requires Qt 5.x. The focus of PythonQt is on embedding Python into an existing C++ application, not on writing the whole application completely in Python. If you want to write your whole application in Python, you should use PyQt or PySide instead. If you are looking for a simple way to embed Python objects into your C++/Qt Application and to script parts of your application via Python, PythonQt is the way to go! . This package contains development files needed to build applications using and the PythonQt extension PythonQt_QtAll for Python 2.