Parameter "-noconsole" is not working

Asked

Viewed 35 times

0

I have a Python project that uses Pyqt5 and when I run the executable through pyinstaller with the command:

pyinstaller --noconsole --onefile --windowed main.py

is generated the executable where I need to enter the terminal and type ./main. Why the Pyqt5 console appears if I set the parameter --noconsole and why I need to use the terminal?

  • 1

    The flag --noconsole just instructs the process not to create a console window when launching the application, but does not prevent other consoles from being created.

  • it is possible not to let any type of console open?

  • 1

    If any process in your program displays consoles against your will you have to check the documentation of that specific process to know if this behavior is configurable. If not configurable you have nothing to do, or accept or change the component.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.