Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100933 > unrolled thread

Converting py files to .exe and .dmg

Started byBrian Simms <besimms@gmail.com>
First post2015-12-28 07:35 -0800
Last post2016-01-01 09:11 +0100
Articles 5 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  Converting py files to .exe and .dmg Brian Simms <besimms@gmail.com> - 2015-12-28 07:35 -0800
    Re: Converting py files to .exe and .dmg Denis McMahon <denismfmcmahon@gmail.com> - 2015-12-28 15:48 +0000
    Re: Converting py files to .exe and .dmg Adam M <amorawski@magna-power.com> - 2015-12-28 08:09 -0800
      Re: Converting py files to .exe and .dmg Brian Simms <besimms@gmail.com> - 2015-12-31 22:43 -0800
        Re: Converting py files to .exe and .dmg Michiel Overtoom <motoom@xs4all.nl> - 2016-01-01 09:11 +0100

#100933 — Converting py files to .exe and .dmg

FromBrian Simms <besimms@gmail.com>
Date2015-12-28 07:35 -0800
SubjectConverting py files to .exe and .dmg
Message-ID<9b206057-0593-4560-af40-442d03111770@googlegroups.com>
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.

[toc] | [next] | [standalone]


#100934

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2015-12-28 15:48 +0000
Message-ID<n5rljo$sn2$1@dont-email.me>
In reply to#100933
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, denismfmcmahon@gmail.com

[toc] | [prev] | [next] | [standalone]


#100935

FromAdam M <amorawski@magna-power.com>
Date2015-12-28 08:09 -0800
Message-ID<b57d1925-0b0d-4312-b02c-68c3b4f6728e@googlegroups.com>
In reply to#100933
On Monday, December 28, 2015 at 10:35:41 AM UTC-5, Brian Simms wrote:
> 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.

Please check this website:
http://www.pyinstaller.org/
It should solve your problem.

[toc] | [prev] | [next] | [standalone]


#101098

FromBrian Simms <besimms@gmail.com>
Date2015-12-31 22:43 -0800
Message-ID<c2350b5d-51f8-461c-b0b6-7ddb791a218e@googlegroups.com>
In reply to#100935
On Tuesday, 29 December 2015 01:09:30 UTC+9, Adam M  wrote:
> On Monday, December 28, 2015 at 10:35:41 AM UTC-5, Brian Simms wrote:
> > 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.
> 
> Please check this website:
> http://www.pyinstaller.org/
> It should solve your problem.

Hi Adam M,

I went to www.pyinstaller.org and downloaded the software. I don;t know if you are using Windows or Mac. I have a Mac and when I go into Terminal to run "setup.py install" I keep getting "-bash: command not found". 

I have read the manual and done what it suggested, but still no joy. I have MacPorts (which I downloaded several days ago.

If you could provide any pointers as to how I could run the "setup.py" on my Mac, it would be hugely appreciated.

Thanks. :-)

[toc] | [prev] | [next] | [standalone]


#101099

FromMichiel Overtoom <motoom@xs4all.nl>
Date2016-01-01 09:11 +0100
Message-ID<mailman.135.1451635950.11925.python-list@python.org>
In reply to#101098
> On 2016-01-01, at 07:43, Brian Simms <besimms@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,

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web