Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Converting py files to .exe and .dmg

2,683 views
Skip to first unread message

Brian Simms

unread,
Dec 28, 2015, 10:35:41 AM12/28/15
to
Hi there,

I have done a lot of looking around online to find out how to convert Python files to .exe and .dmg files, but I am confused. Could someone provide pointers/advice as to how I can turn a Python file into a Windows .exe and Mac .dmg file.

Thanks for any help.

Denis McMahon

unread,
Dec 28, 2015, 10:51:02 AM12/28/15
to
On Mon, 28 Dec 2015 07:35:18 -0800, Brian Simms wrote:

> I have done a lot of looking around online to find out how to convert
> Python files to .exe and .dmg files, but I am confused. Could someone
> provide pointers/advice as to how I can turn a Python file into a
> Windows .exe and Mac .dmg file.

Python files are scripts, they need to be run by an interpreter.

If you want an executable file, you need to compile them. I don't know if
this is possible.

Otherwise, if you want to distribute the .py files, then the people you
distribute them to will need to install a python interpreter on the
machine they wish to execute them on.

--
Denis McMahon, denismf...@gmail.com

Adam M

unread,
Dec 28, 2015, 11:09:30 AM12/28/15
to
Please check this website:
http://www.pyinstaller.org/
It should solve your problem.
Message has been deleted

Michiel Overtoom

unread,
Jan 1, 2016, 3:13:00 AM1/1/16
to

> On 2016-01-01, at 07:43, Brian Simms <bes...@gmail.com> wrote:
>
> when I go into Terminal to run "setup.py install" I keep getting "-bash: command not found".

Try:

python setup.py install

Greetings,

Techtask Technologies

unread,
Feb 18, 2022, 5:47:19 PM2/18/22
to
You can convert Python Files to exe using Pyinstaller, this are the procedures below:
Run this commands on your terminal:
pip install pyinstaller
pyinstaller nameofyourfile.py --onefile
after that a folder should be created named Dist open it and you would see your Python file in an executable format.
I think this would help you.
~Paul Fruitful
0 new messages