-4

I currently use python 3. I also want a single exe file as the end product. What application would I use to combine all my libraries with my exe? I tried cx_freeze but it gives me library, dll files.

Martin Tournoij
  • 26,737
  • 24
  • 105
  • 146
user3897196
  • 17
  • 1
  • 2
  • 1
    cx_freeze should work, but there's also py2exe, and maybe more... You should give more information about your problem (ie. your `setup.py` file, better description of the results you get, etc.) so people can actually help you with your problem. – Martin Tournoij Aug 06 '14 at 12:47
  • My guess is it would work fine and your `setup.py` is the problem. Unless you post it and give more info, there isn't much we can do to help. – nerdwaller Aug 06 '14 at 12:49
  • Use pyinstaller it will work – rajeshv90 Aug 06 '14 at 12:57
  • I find py2exe does the job sufficiently – duhaime Aug 06 '14 at 13:05

1 Answers1

0

This post on StackOverflow suggests the use of py2exe and cython to compile your python files into a .dll executable.

How to make a Python script standalone executable to run without ANY dependency?

Realizing that ^^ is not actually an answer...

e.g.

You have a scipt named script.py

create a setup.py file that will tell py2exe what to do.

setup.py example:

from distutils.core import setup
import py2exe

setup(console=['script.py']

run from console "python setup.py py2exe"

you should now have an executable named script.py

reference: http://www.py2exe.org/index.cgi/Tutorial for this most simple example...

Community
  • 1
  • 1
fireitup
  • 896
  • 6
  • 10