In Python, how to assign stdout, stdin, and stderr to variables, using the module "subprocess" with the hidden console? Because before I package the program into executable .exe, I can do the normal assignment, but after the program bundled to exe with the pyinstaller, without the command prompt, error console. Can someone help me? Because with the console appearing works, but with the console not hidden, and as my program has graphical interface I do not want console appearing.