简体   繁体   中英

Python converted to .exe (via Pyinstaller) doesn't work

I convert a simple print("Hello World") code form Python to .exe with Pyinstaller (with the comand pyinstaller -wF ) and apparently it creates the file properly. However, when I execute it, nothing happens.

Nothing happens because print() sends a message to standard output (your terminal), but an .exe has no terminal. You can try to implement a GUI to display this information (in a module like tkinter ), or have your program do something else like open a program or file on your computer!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM