cx_freezeで作成したmsi(exe)ファイルの実行時エラー

python(setup.py)

1import sys 2from cx_Freeze import setup, Executable 3 4build_exe_options = {5 # 取り込みたいパッケージをこの中に記載します。6 "packages": [7 "bottle",8 "os",9 "csv",10 "openai",11 "llama_index",12 "tiktoken",13 "codecs",14 "sys",15 "tiktoken",16 "tiktoken_ext",17 "logging",18 "datetime",19 ],20 # 除外したいパッケージをこの中に記載します。21 "excludes": [22 # "numpy", # 必須23 # "pandas", # 必須24 # "sqlalchemy", # 必須25 # "sympy",26 "pygments", # OK27 "scipy", # OK28 "setuptools", # OK29 "sklearn", # OK30 "statsmodels", # OK31 "torch", # OK32 "transformers", # OK33 "plotly", # OK34 ],35 # 取り込みたいファイルやフォルダ名を記載します。36 "include_files": [37 "indexdata/",38 "log/",39 "config/",40 ],41}42 43base = None44if sys.platform == "win32":45 base = "Win32GUI"46 47sys.setrecursionlimit(10000)48 49setup(50 name="AA",51 version="1.3",52 description="AA",53 options={54 "build_exe": build_exe_options,55 },56 executables=[57 Executable(58 script="main.py",59 base=base,60 ),61 ],62)

コメントを投稿

0 コメント