'Can't install pyqt5 with debug flag

I want to debug my qml code and for this I need to install pyqt5 version 5.10.1 with the qml debugger flag using:

python3.8 configure.py --qml-debug --verbose

But the command always fails.

When I install sip with apt with the commands:

sudo apt install python3-sip
sudo apt install python3-sip-dev    

The last available version is Sip version 4.19.1. The program returns Error: Unable to create the C++ code when I launch “

python3.8 configure.py --qml-debug --verbose

when i try to install sip with

    python3.8 -m pip install sip==5.5.0
  • sip is not detected, i receive the message: fatal error: sip.h: No such file or directory when I launch
python3.8 configure.py --qml-debug --verbose

My OS: Ubuntu LTS 20.04

my QT5 version: QT5 version 5.12.8



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source