Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any alternatives to py2exe? [closed]

Tags:

python

py2exe

Are there any alternatives to py2exe?

like image 477
daniels Avatar asked Nov 06 '09 17:11

daniels


People also ask

What is the difference between py2exe and Pyinstaller?

In PyInstaller it is easy to create one exe, By default both create a bunch of exes & dlls. In py2exe its easier to embed manifest file in exe, useful for run as administrator mode in windows vista and beyond. Pyinstaller is modular and has a feature of hooks to include files in the build that you like.

Is there an alternative to Pyinstaller?

Nuitka. Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, and 3.10. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.

Does py2exe work on Linux?

py2exe doesn't support on Linux or Mac, as it's aimed to create .exe files which is a Windows-unique format. You can download a Windows virtual machine on both Mac and Linux, use Wine or use a different tool like Pyinstaller on Linux, or py2app on Mac.


2 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;-).

like image 152
Alex Martelli Avatar answered Oct 10 '22 08:10

Alex Martelli


cx_Freeze is cross-platform and does the same, or you could use py2app, which works on mac only.

like image 39
Reshure Avatar answered Oct 10 '22 07:10

Reshure