techy2 Posted October 27, 2012 Report Share Posted October 27, 2012 Tocmai am scris un cod pentru un program in python. Cum il pot executa ca un program normal (.exe)?P.S. Sa poate fi salvat .exe adica pur si simplu sa dau click pe el si sa se deschida programul. Quote Link to comment Share on other sites More sharing options...
techy2 Posted October 27, 2012 Author Report Share Posted October 27, 2012 Alta varianta? Stii as vrea sa-l pot folosi ca un program portabil si unele PC-uri nu au instalat python. Quote Link to comment Share on other sites More sharing options...
Slice228 Posted October 27, 2012 Report Share Posted October 27, 2012 FrontPage - py2exe.org Quote Link to comment Share on other sites More sharing options...
BogdanNBV Posted October 27, 2012 Report Share Posted October 27, 2012 Py2exe, dar iti recomand http://www.pyinstaller.org Quote Link to comment Share on other sites More sharing options...
bc-vnt Posted October 27, 2012 Report Share Posted October 27, 2012 (edited) Download py2exeInstalezi py2exeapoi deschizi CMD , intri in folderu python : cd python26(versiune )saucd programs\python ( depinde unde ai instalat python )apoi dai :dir ( pentru a vedea programele salvate )Dupa toate astea deschizi python unde scrii codul ( IDLE ) si introduci asta .from distutils.core import setupimport py2exesetup (console=["numeleprogramului.py"])apoi inchizi IDLE si te ca intreba daca vrei sa il salvezi , dai YES si il salvezi cu nume de " setup.py" - fara ghilimele .acum inca o data " dir "in CMDai sa gasesti acum in dir si " setup.py " pe care tocmai l-ai salvat acum introdu in CMD :python setup.py installapoi :python setup.py py2exe Acum ai un exe din pythonpy2exe , il instalezi langa python , sa nu dezinstalezi python . Edited October 27, 2012 by bc-vnt Quote Link to comment Share on other sites More sharing options...
cmiN Posted October 27, 2012 Report Share Posted October 27, 2012 S-a discutat si ceva mai cuprinzator:#1#2 Quote Link to comment Share on other sites More sharing options...