I am trying to compile a complex script into an exe with PyInstaller, this is the install command I am currently using although I have tried many variations of these flags:
pyinstaller -w -F --debug=all --noupx --name godnesssakes .\uhoh.py
When I run the exe from the command line I get no output whatsoever, even with debug mode enabled:

Even after simplifying my python script to a simple print command I am still getting no output:
def main():
print('test')
main()
I have tried everything including reinstalling python, reinstalling pip, verifying path, verifying no conflicting versions, using --path flag in pyinstaller...
Versions:
Answers that have NOT helped:
Follow each of these steps... or use your operating system's equvalent.
mkdir newdir and cd newdirpy -m venv venv and venv\Scripts\activatepy -m pip install --upgrade pip pyinstallernewdir/main.pyTo make it even more obvious:....
def main():
while True:
print('test', end='\r')
main()
pyinstaller -F --debug=all --noupx --name goodnesssakes main.pydist\goodnesssakes.exeThe actual problem is that you are using the -w flag which tells pyinstaller that it is a windowed application and therefore doesn't output anything to the console. It is literally and alias for --noconsole
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With