Basically, I am new to Python and I have made a program that spams a word again and again. I have made a GUI version of it and compiled it to .exe with PyInstaller but I also want to compile the non-GUI version of it to run on every Windows 10 like the GUI version. I know that as my non-GUI version has no GUI so therefore it will run in CMD but is it possible? Can I compile the non-GUI version to .exe and run it on any Windows 10 like the GUI version? If yes, How?
BTW, I have tried to compile the non-GUI version to .exe from PyInstaller and it did compiled it for me but it does not run and throws an error
Failed to execute the script.
Thanks in advance.