Python Forum

Full Version: convert program .py into .exe
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Is your target system Windows? Linux? Mac? Combination of OS's?
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.
(Apr-11-2017, 04:13 PM)sparkz_alot Wrote: [ -> ]Is your target system Windows? Linux? Mac? Combination of OS's?
windows7
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.
(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
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
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.
(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