Py2exe
{{Lowercase}}
{{Infobox software
| name = py2exe
| author = Thomas Heller
| developer = Community
| released = {{Start date and age|2001|01|24|df=yes}}
| latest_release_version = 0.13.0.0 / {{Start date and age|df=yes|2022|11|05}}{{cite web |url=https://pypi.org/project/py2exe/ |title=py2exe : Python Package Index}}
| repo = {{URL|https://github.com/py2exe/py2exe}}
| programming language = Python, C
| platform = Microsoft Windows
| genre = Packaging tool
| license = MIT{{cite web |url=http://sourceforge.net/projects/py2exe/?source=navbar |title=Licence |website=sourceforge.net May 2014|date=19 December 2017 }}
| website = {{URL|https://www.py2exe.org/}}
}}
py2exe is a Python extension which converts Python scripts (.py) into Microsoft Windows executables (.exe). These executables can run on a system without Python installed.{{cite web |url=http://www.py2exe.org/ |title=FrontPage |website=py2exe.org |accessdate=2 February 2014}} It is the most common tool for doing so.
py2exe was used to distribute the official BitTorrent client (before the version 6.0) and is still used to distribute SpamBayes as well as other projects.
Since May 2014, version 0.9.2.0 of py2exe is available for Python 3. Before then, py2exe was made only for Python 2,{{cite web |title=old Python 2 py2exe|url=https://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/}} and it was necessary to use an alternative like cx_Freeze for Python 3 code.
Although this program transforms a .py file to an .exe, it does not make it run faster because py2exe bundles the Python bytecode without converting it to machine-code. It may even run slower than using the Python interpreter directly because of startup overhead.
References
{{Reflist}}
External links
- {{Official website|https://www.py2exe.org/}}
- [http://www.pyinstaller.org/ Alternative: PyInstaller] (also supports Linux, Mac OS X, and other platforms)
- [https://pypi.org/project/cx-Freeze/ Alternative: cx_Freeze] (supports all platforms that Python itself works on)
- [http://py2exe.com Alternative: py2exe.com] (allows for converting python to windows executable .exe on linux)
Category:Programming tools for Windows
Category:Python (programming language) software
Category:Software using the MIT license
{{Compu-lang-stub}}