PyQt5.sip Module Not Found Error on Jetson Nano Despite Following Recommended Steps

Hello, I’ve carefully followed all the instructions provided in this NVIDIA forum thread to install PyQt5 on my Jetson Orin Nano.

The code which I used to test the installation is

import sys
from PyQt5.QtWidgets import QApplication, QLabel

app = QApplication(sys.argv)
label = QLabel("Hello, PyQt5!")
label.show()
sys.exit(app.exec_())

Despite completing every step as directed, I still encounter the error:

(l1) esl@ubuntu:~/Desktop/Project_L1$ python test.py 
Traceback (most recent call last):
  File "/home/esl/Desktop/Project_L1/test.py", line 2, in <module>
    from PyQt5.QtWidgets import QApplication, QLabel
ModuleNotFoundError: No module named 'PyQt5.sip' 

It seems that even though SIP (version 4.19.25) is installed in my virtual environment, PyQt5 cannot locate the SIP bindings under its expected namespace. I tried the suggested workaround of creating a symlink, but that did not resolve the issue. Any insights or further suggestions on how to get the SIP module recognized by PyQt5 would be greatly appreciated.

Hi
There are some related topics:
PySide2 (Qt for python) installation on Jetson Xavier - #5 by Muscle_Oliver
QT6 on Jetson Orin Nano from Source - #3 by DaneLLL
Installing QT6 and PySide6 on Jetson Orin Nano

Please take a look and give it a try.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.