How to distribute Python to an executable

Asked 2 years ago, Updated 2 years ago, 17 views

I am using version 3.6 but cx_freeze and pyinstaller are not eating it all. Cx_freeze is syntaxError, but you can't do # -*- coding I don't have a clue what to do with the deployment file, what do you do...

python

2022-09-22 19:12

1 Answers

cx_freeze 5.0.2

Create File

import sys
from cx_Freeze import setup, Executable

setup(
    name="Demo",
    version="1.0",
    description = "Deploy to executable",
    author="jdkim",
    executables = [Executable(".py", base="Win32GUI")])

#Modify base="base" if not GUI

Build Method Select one of the two with the cmd command in the corresponding folder

1. Python <file.py> build #folder format
2. Python <file.py> bdist_msi #msi installation format


2022-09-22 19:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.