8

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?

Nathan2055
  • 2,283
  • 9
  • 30
  • 49
  • what is your user's platform (OS) ? – Kent Apr 09 '13 at 22:03
  • 1
    This 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 Answers2

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
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