Python Forum
convert program .py into .exe - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: convert program .py into .exe (/thread-2802.html)



convert program .py into .exe - mtpl - Apr-11-2017

i faced difficult: how to convert  my program .py into .exe.  i couldn't find answer in internet. my try was not  success. i word with python 2.7.
forward looking


RE: convert program .py into .exe - sparkz_alot - Apr-11-2017

Is your target system Windows? Linux? Mac? Combination of OS's?


RE: convert program .py into .exe - wavic - Apr-11-2017

Any particular reason to use 2.7?

Install py2exe or pyinstaller. In order to do it, you have to use these on Windows machine or a virtual one.


RE: convert program .py into .exe - mtpl - Apr-11-2017

(Apr-11-2017, 04:13 PM)sparkz_alot Wrote: Is your target system Windows? Linux? Mac? Combination of OS's?
windows7


RE: convert program .py into .exe - snippsat - Apr-11-2017

PyInstaller,Py2exe,cx_Freeze all for for 2.7,so you most explain what the trouble is.
If you search i have code for all on this forum.


RE: convert program .py into .exe - mtpl - Apr-11-2017

(Apr-11-2017, 08:24 PM)snippsat Wrote: PyInstaller,Py2exe,cx_Freeze all for for 2.7,so you most explain what the trouble is.
If you search i have code for all on this forum.
i want to have code.maybe for command line. thank you


RE: convert program .py into .exe - metulburr - Apr-11-2017

Quote:i want to have code.maybe for command line. thank you
If you research it a little there is code provided for each package


RE: convert program .py into .exe - snippsat - Apr-11-2017

Quote:maybe for command line.
PyInstaller is the most simple to use.
You install with pip and point to code(.py).
pip install pyinstaller
pyinstaller yourprogram.py
Here a run i did in a earlier post  with virtual environment.



RE: convert program .py into .exe - mtpl - Apr-12-2017

(Apr-11-2017, 08:58 PM)snippsat Wrote:
Quote:maybe for command line.
PyInstaller is the most simple to use.
You install with pip and point to code(.py).
pip install pyinstaller
pyinstaller yourprogram.py
Here a run i did in a earlier post  with virtual environment.

Thank you very much. i'l try to do in the way. i understood in the way: yourprogram,py is my program.py plus path, where it locates