[Python] How can i compile ui + python to exe no console

Discussão em 'Python' iniciado por Stack, Maio 25, 2025.

  1. Stack

    Stack Membro Participativo

    How can I compile a Python + UI project into an .exe file (no console)?

    Project Structure:

    Folders:

    Config/

    pycache/

    dll/

    image/

    Files:

    file.ui

    auth.py

    main_ui.py

    sidebar_navigation.py

    login.py

    Problem:

    When I try to compile, I get this error:

    Traceback (most recent call last):

    File "login.py", line 7, in

    ModuleNotFoundError: No module named 'PyQt5'

    But I already installed PyQt5. This always happens during compilation.

    Fix this error please help

    Continue reading...

Compartilhe esta Página