Creating Executable Files from Python Scripts with py2exe

python_tutorials

Introduction

Executing Python scripts requires a lot of prerequisites like having Python installed, having a plethora of modules installed, using the command line, etc. while executing an .exe file is very straightforward.

If you want to create a simple application and distribute it to lots of users, writing it as a short Python script is not difficult, but assumes that the users know how to run the script and have Python already installed on their machine.

Examples like this show that there is a valid reason to convert .py programs into equivalent .exe programs on Windows. .exe stands for “Executable File”, which is also known as a Binary.

The most popular way to achieve this is by using the py2exe module. In this article, we’ll quickly go through the basics of py2exe and troubleshoot some common issues. To follow along, no advanced Python knowledge is needed, however you

 

 

To finish reading, please visit source site