GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - TufayelLUS/Convert-Python-Project-To-Executable: This is a template repository code for converting python script to windows executable using cx_freeze library

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
setup.py
setup.py
 
 

Repository files navigation

Convert Python Project To Executable using cx_freeze

This is a template repository code for converting Python script to Windows executable using the cx_freeze library

Command to install the library

pip install cx_Freeze

Instructions

First, place the setup.py file in the same folder where your main Python file is. After that, Place the name of the Python file under the "executables" variable and include any additional files under the "options" variable. Then, set the process's name, add a description, and save the changes.
Now, open the terminal in the folder and run this command

python setup.py build

This will compile the program under the "build" folder.

How to add a program icon

Change the executables line to this:
Note: If you want to enable the debug console, set base="Console"

executables = [Executable("python_file_name.py", base=base, icon="favicon.ico")]

After that, add the same "favicon.ico" in the same line as "include_files" so that it is like

"include_files": ["favicon.ico"],

Make sure to keep the icon file within the same folder too. Then run the build command, and the program will include the program icon.

About

This is a template repository code for converting python script to windows executable using cx_freeze library

Topics

cx-freezeexecutable-filepython-to-exepython3

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.