How do I let my friends use my Python programs? They don't have python installed, but they can use command line programs. I don't have the skill to write GUI.
Let, say I am writing some calculus calculator, with a lot of custom modules and files. How do I share it?
-
3stackoverflow.com/questions/4190635/…pmav99– pmav992011年12月16日 22:33:14 +00:00Commented Dec 16, 2011 at 22:33
-
1great link pmav99. I asked this in 2009, however. Thanks for the additional reference.CppLearner– CppLearner2011年12月17日 20:13:45 +00:00Commented Dec 17, 2011 at 20:13
-
Does this answer your question? How can I distribute python programs?halt9k– halt9k2023年03月02日 10:32:00 +00:00Commented Mar 2, 2023 at 10:32
6 Answers 6
You could use something like py2exe to convert your Python program into an executable.
5 Comments
another alternative you can try is Portable python.
1 Comment
You have the options presented thus far: Portable Python and Py2Exe. Either can be pretty good.
My suggestion: encourage your friends to install Python! As you know, it's free, and simple to install and download. If they want your application bad enough, installing Python will be a no-brainer.
Comments
In 2019 I have been using PyInstaller mostly, works very well for all of my Python scripts I wish to convert to a single runnable exe.
Comments
A less general, but lightweight and simple way of putting many Python files into 1 or 2 files (Python programs) is Fredrik Lundh's squeeze program. When you "squeeze" a bunch of Python programs and modules, you can often produce a single Python program. People still need Python to run it (but it's included in most Unix distributions, including Mac OS X), but you can easily distribute it, as your program and modules are all bunched up in a single file.
Comments
http://hackerboss.com/how-to-distribute-commercial-python-applications/ mentions using preinstalled, bundled, and frozen interpreters, but i suggest for speed and security, to compile using Shed Skin, Iron Python, Cython, or PyPy. The psyco module also helps with speed if your code is old.