Python Forum
convert program .py into .exe
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
convert program .py into .exe
#1
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
Reply
#2
Is your target system Windows? Linux? Mac? Combination of OS's?
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#3
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.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#4
(Apr-11-2017, 04:13 PM)sparkz_alot Wrote: Is your target system Windows? Linux? Mac? Combination of OS's?
windows7
Reply
#5
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.
Reply
#6
(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
Reply
#7
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
Recommended Tutorials:
Reply
#8
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.
Reply
#9
(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
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020