Are there any alternatives to py2exe? [closed]

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 … Read more

Enabling JPEG support for QImage in py2exe-compiled Python scripts?

After hours of stumbling around with the same issue, I’d like to share the solution that worked for me on windows vista: using python2.6 copy the following directory into your dist directory generated by py2exe: C:\Python26\Lib\site-packages\PyQt4\plugins\imageformats I just dropped the imageformats directory directly into my dist directory, without any further modifications to qt.conf or anything … Read more

Packaging a Python script on Linux into a Windows executable

As mentioned by other answerers, the cross-compilation feature is removed from PyInstaller since 1.5. Here, show how to package a Windows executable from Python scripts using PyInstaller under wine. Step 1: Install wine and Python sudo apt-get install wine wine msiexec /i python-2.7.10.msi /L*v log.txt PS: Newer Python versions already include pip (is used to … Read more

Py2exe for Python 3.0

Update 2014-05-15 py2exe for Python 3.x is now released! Get it on PyPI. Old information Have a look at the py2exe SourceForge project SVN repository at: http://py2exe.svn.sourceforge.net/ The last I looked at it, it said the last update was August 2009. But keep an eye on that to see if there’s any Python 3 work … Read more

IndexError: tuple index out of range when using py2exe

Update (2020-11-17): py2exe LIVES!!! Apparently my pessimism a year ago (see “Update” at bottom of original post) was unwarranted. py2exe released new versions in October and November of 2020, supporting 3.5-3.8 in 0.10.0.2 and adding 3.9 support in 0.10.1.0 (dropping support for 3.4 and earlier). As long as you upgrade to an appropriate py2exe version … Read more