Jump to content
techy2

Executare python script

Recommended Posts

Download py2exe

Instalezi py2exe

apoi deschizi CMD , intri in folderu python : cd python26(versiune )

sau

cd 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 setup
import py2exe
setup (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 CMD

ai sa gasesti acum in dir si " setup.py " pe care tocmai l-ai salvat

acum introdu in CMD :

python setup.py install

apoi :

python setup.py py2exe

Acum ai un exe din python

py2exe , il instalezi langa python , sa nu dezinstalezi python .

Edited by bc-vnt
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...