cx_freeze打包EXE文件

创建setup.py文件

import os
import sys
from cx_Freeze import setup, Executable build_exe_options = dict(packages=['conf', 'core', 'numpy'], excludes=[]) os.environ['TCL_LIBRARY'] = r'C:\Users\panhw\Anaconda3\tcl\tk8.6'
os.environ['TK_LIBRARY'] = r'C:\Users\panhw\Anaconda3\tcl\tk8.6' base = None
if sys.platform == 'win32':
base = 'Win32GUI' executables = [
Executable(script='main.py', base=base)
] setup(name='test to exe',
version='0.1',
description='test from py file to exe file',
options = {'build_exe': build_exe_options},
executables=executables
) 执行python setup.py build
上一篇:Spring MVC Json数据传递


下一篇:vue富文本编辑器vue-quill-editor使用总结(包含图片上传,拖拽,放大和缩小)