Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i make a application with single .exe file using python? [duplicate]

Tags:

Possible Duplicate:
py2exe - generate single executable file

I made a application.exe from application.py using "pyinstaller".There are so many .dll file generated during this process. How can i make a application with single .exe file

like image 340
EbinPaulose Avatar asked Jul 30 '12 11:07

EbinPaulose


People also ask

Can you package Python into an 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.

Which is better py2exe or 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.


1 Answers

Have you tried the --onefile option to PyInstaller? See the documentation on the subject.

like image 81
aknuds1 Avatar answered Oct 30 '22 09:10

aknuds1