Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NotificationsYou must be signed in to change notification settings

TufayelLUS/Convert-Python-Project-To-Executable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2026 Movatter.jp