H
H
hardwellZero2015-02-21 22:53:43
Python
hardwellZero, 2015-02-21 22:53:43

How to convert .py to .exe?

Good evening.
I wrote a small program in Python, I need to make it "run on Windows".
I installed a VM with Windows, installed Python, the necessary libs. I tried to do it through py2exe, everything seems to be going well, but when the .exe file is launched, the window immediately closes.
How to do it right?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Paperno, 2015-02-21
@AviPaperno

cx_Freeze
1) Install it . Or via pip : pip install cx_Freeze
2)Create a setup.py file. Here is the instruction
3) Run from the terminal

C
Cyril, 2015-02-23
@SaulTigh

PyInstaller is a good option. Able to build executable files for major platforms + supports many existing Python libraries.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question