Hiding console window of Python GUI app with py2exe

Yep, it is possible. If I use setup(console=[‘__main__.py’], options={“py2exe”:{“includes”:[“sip”]}}) It creates a console app, however if I use setup(windows=[‘__main__.py’], options={“py2exe”:{“includes”:[“sip”]}}) it does not show console on .exe file. But output is dumped on main.exe.log file in the .exe folder. Be careful.

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

making exe file from python that uses command line arguments

setup(console=[‘hello.py’]) I believe the line you want to use looks like this. I tested this with 2 files: hello.py import sys for arg in sys.argv: print arg print “Hello World!” And setup.py from distutils.core import setup import py2exe setup(console=[‘hello.py’]) I ran these commands: python setup.py py2exe And then in the dist folder, I ran this: … 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