Running .exe file in win 10 (Запуск файла .exe в win 10) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Running .exe file in win 10 (Запуск файла .exe в win 10)

Using pyinstaller, created an .exe file from a .py file. After starting the .exe file in win 10 and executing the program, the window immediately closes. Tell me how to make the window not close by itself. С помощью pyinstaller создал файл .exe из файла .py. После запуска в win 10 файла .exe и выполнения программы окно сразу же закрывается. Подскажите как сделать так, чтобы окно не закрывалось само.

22nd Aug 2020, 6:23 PM
Konstantin K
Konstantin K - avatar
2 Answers
+ 4
Found a simple solution - just added input () on the last line
22nd Aug 2020, 7:16 PM
Konstantin K
Konstantin K - avatar
+ 4
Martin Taylor Thanks. I understood you, I will think of something better
22nd Aug 2020, 8:00 PM
Konstantin K
Konstantin K - avatar