Answer the question
In order to leave comments, you need to log in
PyQt6 module is not imported when building via pyinstaller, what should I do?
There is UpdatedGUI.py , which imports the local design.py file . Usually, everything works fine, but when building through pyinstaller , it gives me the following at startup:
(When the file is launched, it closes instantly, I managed to screen this one) Here's the line
it
swears at
: Design.py
file so that pyinstaller normally throws QtCore, QtGui, QtWidgets modules from PyQt6?
It is worth noting that even if you import the same modules from the main file, it will still say that they are not found.
from PyQt6 import QtCore, QtGui, QtWidgets
pyinstaller --onefile UpdatedGUI.py
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question