Convert a Python Mission to an Executable (.exe) File
Tips on how to convert .py to .exe utilizing Auto PY to EXE

Fahadul Shadhin

Comply with

Might 8 · 5 min learn

Photograph by Markus Spiske from Pexels

Utilizing Auto PY to EXE we are able to convert .py recordsdata to .exe recordsdata very simply. This fashion our Python venture will act like a desktop software. And we can run the appliance in different home windows machines with out putting in Python.

On this article you’ll learn to convert a Python venture to an executable file. The method will work whether or not your software has only one .py file or a a number of .py recordsdata. Notice that Auto PY to EXE works solely in Python model 3.5 or larger. So you possibly can’t use it in Python model decrease than 3.5.

Desk of Contents

· Putting in Auto PY to EXE
Putting in utilizing pip
Putting in from GitHub
· Opening the Utility
· Steps to Convert
Step 1. Including the file location
Step 2. Selecting ‘One Directory’ or ‘One File’
Step 3. Selecting ‘Console Based’ or ‘Window Based’
Step 4. Changing
· The Output Folder
· Conclusion
· Sources

Putting in Auto PY to EXE

Putting in utilizing pip

Putting in Auto PY to EXE is a reasonably simple course of. Utilizing pip we are able to set up it in our pc very simply. Working the next command will set up the present model of Auto PY to EXE.

$ pip set up auto-py-to-exe

Putting in from GitHub

We will additionally set up it straight from GitHub. To put in Auto PY to EXE from GitHub first we have to clone the GitHub repository.

$ git clone

Then we have to navigate to the auto-py-to-exe listing.

$ cd auto-py-to-exe

Now we have to run the file.

$ python set up

We will additionally verify the model by working this command:

auto-py-to-exe --version


Checking the model

The current version of Auto PY to EXE is 2.9.0 and it is now installed in our computer.

Opening the Utility

To open Auto PY to EXE we’ve to execute the next command from the terminal:

$ auto-py-to-exe

This can open a pleasant GUI software that appears like this:


Consumer interface of Auto PY to EXE

Now we are able to convert our .py file to .exe utilizing this interface.

Steps to Convert

Step 1. Including the file location

To transform .py to .exe first we have to give the trail of the Python file. We simply have to browse to the placement of the file we wish to convert after which add the trail.

Take a look at the instance under:


Including the file location

I added the location of the main Python file of my project. Here I am using one of my Python projects. It is a GUI application that visualizes various sorting algorithms. I wrote an article on how to make this project. You can read it here:

Build a Sorting Algorithm Visualizer in Python

Create a simple GUI application using Python & Tkinter that visualizes various sorting algorithms

Step 2. Selecting ‘One Directory’ or ‘One File’

Then there will be an option to choose ‘One Directory’ or ‘One File’. My Python project had several other files so I decided to choose ‘One Directory’ option. It will create a directory with all necessary files along with the .exe file.


One listing or One file

Step 3. Selecting ‘Console Based’ or ‘Window Based’

After that there will likely be an choice whether or not we wish our software to be ‘Console Based’ or ‘Window Based’. Selecting ‘Window Based’ will conceal all of the console outputs of the appliance. In case your venture generates console based mostly outputs then it’s worthwhile to select ‘Console Based’. However when you’ve got a GUI software otherwise you don’t wish to present the console outputs to the customers then it’s worthwhile to select ‘Window Based’. I’m selecting the second choice as a result of my software is a GUI software.


Console based mostly or Window based mostly

Step 4. Changing

Now we will see some more options like adding icons, additional files etc. You can choose those options as per your need. But for now our .py file is ready to convert. We just need to press the CONVERT .PY TO .EXE button.


Press the button to transform

We have to wait a bit to finish the method.

The Output Folder

After the method is accomplished we could have an choice to open the output folder.


Opening the output folder

By default the output folder will be created from where we opened Auto PY to EXE. In my case I opened Auto PY to EXE from desktop. So the output folder is created in this location. The output folder will have a lot of files and folders. But our concern is the file with .exe extension. For me it was essential.exe. Double clicking on this file will open this system.

Done! Our Python project is now converted into an executable file. We can now run the application in other computers without having to install Python.


And that’s it! Now you know an easy solution to convert your Python project to an executable application. This will come very handy if you want to share your project with others who may not have Python installed in their computer.

I hope you discover it useful. Thanks for studying.


Extra content material at

See also  Ace Browser – Fast APK Download for Windows - Latest Version 2.6.5

Leave a Reply

Your email address will not be published.