请如何将我的py文件转换为exe。
我的py文件是使用tkinter开发的gui程序,包含以下内容。
导入多个模块(内置模块,第三方模块和我创建的模块)
import sys
sys.setrecursionlimit(5000)
block_cipher = None
a = Analysis(['weldFunctions.py'],
pathex=['c:\\users\Python-Files\\Gui\\FilletWeld'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='weldFunctions',
debug=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=False )