I know how to run a python script as a background process, but is there any way to compile a python script into exe file using pyinstaller or other tools so it could have no console or window ?
            Asked
            
        
        
            Active
            
        
            Viewed 634 times
        
    0
            
            
        - 
                    what do you mean with 'no console'? – enneppi May 08 '18 at 11:05
- 
                    Possible duplicate of [How do you run a Python script as a service in Windows?](https://stackoverflow.com/questions/32404/how-do-you-run-a-python-script-as-a-service-in-windows) – Erik Cederstrand May 08 '18 at 11:11
- 
                    i mean when you click on my program, i dont want any prompt or window or anything to be shown, just the process be activated on background and do its job – May 08 '18 at 11:12
2 Answers
1
            To run an executable generated with Pyinstaller without a console window, use the --noconsole flag (pyinstaller --noconsole my_file.py).
Windows and Mac OS X: do not provide a console window for standard i/o. On Mac OS X this also triggers building an OS X .app bundle. This option is ignored in *NIX systems.
See the documentation for more information.
 
    
    
        apogalacticon
        
- 709
- 1
- 9
- 19
0
            
            
        If you want to run it in background without "console and "window" you have to run it as a service.
 
    
    
        George312
        
- 27
- 10