How to Install PyQt5 Jetson nano


How to install pyqt5 on python3.8 in jetson nano ??

I also tried “sudo apt-get install python3-pyqt5” . It worked but when I imported PyQt5 by “from PyQt5 import QtCore, QtGui, QtWidgets” or “from PyQt5.QtCore import QObject, pyqtSigna” it give me error

error : ImportError: cannot import name ‘QtCore’ from ‘PyQt5’ (/usr/lib/python3/dist-packages/PyQt5/


Compiling PyQt5 on the Jetson Nano involves building the PyQt5 library from source. PyQt5 is a set of Python bindings for the Qt application framework, and building it from source ensures that it is compatible with the Jetson Nano’s architecture and environment.

Here are the steps to compile PyQt5 on the Jetson Nano:

  1. Install Prerequisites:
    sudo apt-get update
    sudo apt-get install build-essential python3-dev python3-pip python3-pyqt5.qtsvg python3-pyqt5.qtwebkit

  2. Install SIP:

download for : Riverbank Computing | Download
tar -xvzf sip-4.19.25.tar.gz
cd sip-4.19.25.tar.gz
sudo make install

  1. install PyQt5:

download for :PyQt5 · PyPI
tar -xvzf PyQt5-5.15.0.tar.gz
cd PyQt5-5.15.0.tar.gz
python3 --qmake /usr/lib/aarch64-linux-gnu/qt5/bin/qmake
sudo make install

  1. Test PyQt5:

import sys
from PyQt5.QtWidgets import QApplication, QLabel

app = QApplication(sys.argv)
label = QLabel(“Hello, PyQt5!”)



It looks like you posted to the wrong category,

I will move this to the Jetson Nano forum.

Thanks for the sharing.

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