Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

a good python to exe compiler? [closed]

Tags:

python

I am new to python and apart from the language itself, I am exploring various aspects of it. in terms of compilation into .exe (so that it can be deployed without installing python too) I checked py2exe, new releases stopped a few years ago. Then pyInstaller, seems to have stopped at python 2.7.

Can I get a list of all python to exe compilers? thanks

like image 427
user1866880 Avatar asked Jan 04 '13 21:01

user1866880


People also ask

Can Python be compiled to exe?

Yes, it is possible to compile Python scripts into standalone executables. PyInstaller can be used to convert Python programs into stand-alone executables, under Windows, Linux, Mac OS X, FreeBSD, Solaris, and AIX. It is one of the recommended converters.

Does converting Python to exe make it faster?

No, not really. Since it's merely a wrapper it provides the necessary files needed to run your code. Using Cython could make your program run faster by being able to compile it using C.


2 Answers

  • pyinstaller for Windows, Linux, and Mac OS X (Python 3.5-3.10)
  • cx_Freeze for Windows, Linux, and Mac OS X (Python 3.6-3.10)
  • bbfreeze for Windows and Linux (Python 2.4-2.7)
  • py2exe for Windows (Python 2.6, 2.7)
  • py2exe for Windows (Python 3.3-3.10)
  • Freeze for Linux and maybe Mac OS X (Python 2.x)
  • py2app for Mac OS X (Python 2.x)
  • Nuitka for Windows, Linux, and MacOS (2.6, 2.7, 3.3-3.9)
like image 78
Austin Henley Avatar answered Oct 08 '22 20:10

Austin Henley


https://github.com/marcelotduarte/cx_Freeze

Works fine for Python 3.x.

Otherwise you can always make your script run at Python 2.x and use a program that can transform from that version.

Also look up:

Python 3.0.1 Executable Creator

Making a portable (exe) with Python 3.1?

like image 37
LoneDruidOfTheDarkArts Avatar answered Oct 08 '22 22:10

LoneDruidOfTheDarkArts