On 27/08/16 07:26, Jade Beckmann wrote:

> I'm just wondering how someone who doesn't have the python software
> installed on their PC or mac would be able to run the program?

They can't. You need the interpreter to be able to run Python code.

The good news is that Macs come with Python installed so provided
your code runs on that version of Python you are good to go.
You need to install your  code plus any extra modules
(eg the GUI framework etc)

On Windows its more complex and you either have to
1)provide a link for the user to download Python separately.
(This is what Java users do, leaving it to the user to
install Java on the computer.)
or
2) Bundle the interpreter with your code so it all gets
installed at once, you might create a simple installer
program to do that for the user.
or
3) use an exe builder tool that wraps the interpreter and your
code into a single executable file. The downside of this is
that if the user has several of your programs they effectively
end up with multiple versions of Python installed, one
per exe. But disk space is cheap these days...

These approaches get easier for the user and harder for
the programmer as you go down the list. Your choice...

But the bottom line is that one way or another you need to
get a Python interpreter on your users computer to run your
code.

The final option is to change your program so that it
is a web app and deploy it on a server. Then you just
need to distribute the URL.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to