8

Is there a way to make a portable/stand-alone exe for python apps?

I've read about p2exe but it doesn't support the latest version. I'm reluctant to go to 2.6 because I'd rather stay with the latest version instead of worrying about incompatibilities as soon as 2.6 becomes too outdated.

  • 2
    Isn't library incompatibilities the main reason that people aren't switching to Python 3? – Deniz Dogan Oct 01 '09 at 18:53
  • @blahblah: Indeed it is. There are almost no 3rd party libs for Python 3 yet. But setuptools just became available through the distribute project, sp that might change soon. – Lennart Regebro Oct 01 '09 at 19:05
  • possible duplicate of [What technologies exist to create stand alone executables for Python 3?](http://stackoverflow.com/questions/3447093/what-technologies-exist-to-create-stand-alone-executables-for-python-3) – Matt Joiner Feb 21 '11 at 15:05

1 Answers1

13

cx_freeze has worked for me. Here's a link. The page claims to support 3.1. Good luck!

http://cx-freeze.sourceforge.net/

Carl Norum
  • 219,201
  • 40
  • 422
  • 469
  • To be honest I've never tried on 3.1, but it does work well for older stuff, so I presume they're not just lying to us! =) – Carl Norum Oct 01 '09 at 19:05
  • Also check http://www.mail-archive.com/cx-freeze-users@lists.sourceforge.net/msg00212.html to get around some errors you might receive when building. – WrongAboutMostThings Nov 26 '09 at 01:18