Are there any alternatives to py2exe?
4 Answers
pyInstaller is cross-platform and very powerful, with many third-party packages (matplotlib, numpy, PyQT4, ...) specially supported "out of the box", support for eggs, code-signing on Windows (and a couple other Windows-only goodies, optional binary packing... the works!-) The one big issue: the last "released" version, 1.3, is ages-old -- you absolutely must install the SVN trunk version, svn co http://svn.pyinstaller.org/trunk pyinstaller
(or the 1.4 pre-release, but I haven't tested that one). A fair summary of its capabilities as of 6 months ago is here (in English, despite the Italian URL;-).
-
pyInstaller looked like the most robust of those I tried recently (pyInstaller, cx_Freeze, bbfreeze). Additionally to what Alex mentioned, offers a "no-console" option for Windows, correctly includes the modules, well-documented, is installed separately from the Python installation so you can switch between versions if need be.– RedGlyphNov 7, 2009 at 11:49
-
unfortunately no python3 support yet. the one python app i want to generate an exe for i happened to write in python3.1 :P Feb 16, 2010 at 20:44
-
PyInstaller rocks! I only had one little issue with ctypes since it couldn't find the referenced DLL, but after manually copying it to the output folder everything worked perfectly! Oct 21, 2011 at 18:50
-
5Note: PyInstaller has been moved to GitHub. See: github.com/pyinstaller/pyinstaller– Ian C.Aug 2, 2012 at 15:30
-
pyinstaller works well but sadly seems to have issues with many anti-virus vendors. Although I have not had issues with false positives, it seems to take an age to scan the .exe when it starts, and I cannot possibly test for all the various AV packages out there. For code you intend to release in the wild, this kind of problem could become very painful. (I am using 3.5)– danmcbDec 31, 2019 at 13:09
-
-
4
- Py2exe
- PyInstaller
- cx_Freeze
- bbfreeze
- py2app
You might also consider Nuitka, which compiles python to native code.
bbfreeze claims to works on Windows and UNIX, but not on OS X. It doesn't seem to be actively developed anymore, though.
-
3
bfreeze
and the programs it creates are unfortunately detected as malicious by anti-virus software (Norton in particular). It is a problem for users since you can hardly tell them to turn off such and such feature of their system protection. For the record, I personally hate those experimental anti-virus detection features.– RedGlyphNov 7, 2009 at 11:39 -
bbfreeze appears to have support for OSX on its trunk ("tip") version, though not in a released version. And I haven't tested it myself. Mar 18, 2010 at 1:25
-
According to virustotal.com the executable that bbfreeze created for me is not being picked up by Norton as a virus. (Of course it could still be detected during runtime due to some "Behavioral Protection" magic.) Apr 11, 2010 at 23:03
-
bbfreeze worked for me where pyinstaller failed, see github.com/pyinstaller/pyinstaller/issues/2009 for details– DavideMay 27, 2016 at 21:16