Компиляция в .exe | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Компиляция в .exe

Здравствуйте, у меня не работает программа написанная на языке python. В коде есть модуль "pygame" и также png картинки(в отдельной папке, путь сделал правильно и все работает). В редакторе кода(sublime text 3) запускаю через консоль или через ctr + b и также запускается окно с игрой и все окей. При компиляции создаются папки и нахожу саму программу(script1.py и сам код назывался script1.py) запускаю и окно открввается пустой и через пару секунд многвенно появляется(на 0.9 сек или меньше) ошибка, закрывается окно. С калькулятором у которого модуль используется math отлично работает программа. Не понимаю в чем проблема

9th Mar 2020, 2:17 AM
MrMisha
MrMisha - avatar
1 Answer
0
Translation: Compilation in .exe Hello, I do not have a program written in python. The code has a module "pygame" and also png images(in a separate folder, the path is correct and everything works). In the code editor (sublime text 3), I launch it via the console or via ctr + b and also launch a window with the game and everything is OK. When compiling folders are created and I find the program itself(script1.py and the code itself was called script1.py) I start and the window opens empty and in a couple of seconds an error instantly appears(for 0.9 seconds or less), the window closes. The program works perfectly with a calculator that uses the math module. I don't know what the problem is
18th Mar 2020, 6:00 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar