[Python] No module named 'PyQt6'

Discussão em 'Python' iniciado por Stack, Junho 2, 2025.

  1. Stack

    Stack Membro Participativo

    I wanted to use pyqt6 with qtdesigner, I installed pyqt6 version 6.1 and it's tools (which include qtdesigner) and the installation was successful. After installation I opened qtdesigner and created an .ui file then later converted that .ui file in .py file in terminal. Then I tried to run the .py file but it shows some error like this :

    Traceback (most recent call last):
    File "C:\Users\Aristo_NPC\PycharmProjects\PYQT\pyqt6\untitled.py", line 9, in <module>
    from PyQt6 import QtCore, QtGui, QtWidgets
    ModuleNotFoundError: No module named 'PyQt6'
    Press any key to continue . . .


    How can I solve this issue? My python version is 3.9.9 thank you

    I was expecting to open the same gui widgetthat I created on qtdesigner.

    Continue reading...

Compartilhe esta Página