Tôi mới sử dụng Python và cx_Freeze. Xin hãy giúp tôi làm cho nó hoạt động.cx_Freeze thiếu lỗi mô-đun
Và hãy chạy lệnh:
python setup.py xây dựng
Nó được đem lại cho tôi những lỗi sau.
module Thiếu:
? Hệ thống được nhập từ serial.serialcli
? TERMIOS được nhập từ serial.serialposix
? clr được nhập từ serial.serialcli
? wx được nhập từ wxversion
Tôi đang sử dụng tệp setup.py sau.
# Let's start with some default (for me) imports...
from cx_Freeze import setup, Executable
# Process the includes, excludes and packages first
includes = []
excludes = ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger',
'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl',
'Tkconstants', 'Tkinter']
packages = []
path = []
GUI2Exe_Target_1 = Executable(
# what to build
script = "..\esp\main.py",
initScript = None,
base = 'Win32GUI',
targetDir = r"dist",
targetName = "acup_new.exe",
compress = True,
copyDependentFiles = True,
appendScriptToExe = False,
appendScriptToLibrary = False,
icon = None
)
setup(
version = "0.1",
description = "No Description",
author = "No Author",
name = "cx_Freeze Sample File",
options = {"build_exe": {"includes": includes,
"excludes": excludes,
"packages": packages,
"path": path
}
},
executables = [GUI2Exe_Target_1]
)