py2exe

Download python 2.7 and py2exe-0.6.9.win32-py2.7.exe

  • create a setup.py under your project folder
from distutils.core import setup  
import py2exe  

# <name>.py is your python script
setup(console=['<name>.py'])
  • execute the following command
$ python setup.py py2exe
  • It will generate build and dist folder.
  • dist folder will contain everything you need to run (including <name>.exe)

dll not found
create python exe
py2exe tutorial

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License