Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote a Python game in for a group project using Pygame. Now we wanted to package it into an executable but I can't seem to do it. When I was working with C# through Microsoft Visual Studio it had a really simple publish feature. Is there an editor that can do that for Python with external libraries?

share|improve this question
up vote 1 down vote accepted

I've had luck compiling to executable using PyInstaller. Another possibility, as Luiz mentions, is py2exe.

Both of these tools have options to bundle all of the python libraries into the executable if you want, making it easy to distribute. Either of these might have issues with whatever libraries you might be using, so it might be easiest to check the forum of the libraries you're using to see if they have a recommendation.

share|improve this answer

Well, I'm really new in Python's World. But maybe py2exe can help you.

share|improve this answer
when I was googling this I heard about some problems that I really didn't understand enough to re-explain them, but if there's another option I would prefer it! Thanks though, I'll select your answer if no other choices come out – TMP Jul 27 '12 at 17:25

The technical part of publishing is described correctly in Luiz's answer, but publishing also involves licensing your game, usually. For that, I suggest you use the Mit license, if you plan to make it unprofitable and aopen-source.

share|improve this answer
i should have specified, i plan to just distribute it to friends and don't mind if code is taken from it without acknowledgement – TMP Jul 27 '12 at 18:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.