I am planning to create a Python program and distribute it bundled with C# GUI. How can I distribute the Python part of the program without requiring users to have Python?
Asked
Active
Viewed 1,921 times
8
-
what is your user's platform (OS) ? – Kent Apr 09 '13 at 22:03
-
1This is a dup of at least a dozen questions, such as [How can I distribute python programs](http://stackoverflow.com/questions/1558385/how-can-i-distribute-python-programs?rq=1), [Distributing Programs Written in Python](http://stackoverflow.com/questions/4190635/distributing-programs-written-in-python), etc. (I think the latter has the best answers, albeit a bit out of date, but it's been marked as a dup of a less-useful one.) – abarnert Apr 09 '13 at 23:11
2 Answers
6
Try py2exe or a similar tool. Or bundle the Python runtime with your software. To do that, you can use Pyinstaller.

Tomas Andrle
- 13,132
- 15
- 75
- 92
-
1Or [py2app](http://pythonhosted.org/py2app/) if you're planning to distribute to Mac. Or both if you want to keep it portable. – DaveTheScientist Apr 09 '13 at 22:07
-
[cx_Freeze](http://cx-freeze.sourceforge.net/) is a similar tool. – Craig McQueen Apr 10 '13 at 03:14
-
4
In the past, I have used py2exe (windows) so that I do not have to ask them to install python.
py2exe creates an exe which the user clicks and it runs without a problem.
If you want to go beyond this, package it with something like innosetup and it adds an installer which is better.

ronak
- 1,770
- 3
- 20
- 34