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/init.py)
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:
download for :PyQt5 · PyPI
tar -xvzf PyQt5-5.15.0.tar.gz
cd PyQt5-5.15.0.tar.gz
python3 configure.py --qmake /usr/lib/aarch64-linux-gnu/qt5/bin/qmake
make
sudo make install
Test PyQt5:
import sys
from PyQt5.QtWidgets import QApplication, QLabel