python-cx_冻结在64位操作系统上显示错误

python-cx_冻结在64位操作系统上显示错误,python,cx-freeze,Python,Cx Freeze,我正在使用cx\u Freeze将python中的脚本转换为可执行文件,在我的笔记本电脑(32位windows 7)上安装后,它可以正常工作。复制.msi文件并将其安装到我朋友的笔记本电脑(64位windows 10)上后,会显示此错误 我认为错误在我使用“win32com.client”的脚本部分。 如何使我的系统在其他平台上工作?我对这种东西不熟悉,所以我希望有人能帮助我 编辑: 这是我的setup.py脚本 from cx_Freeze import setup, Executable

我正在使用cx\u Freeze将python中的脚本转换为可执行文件,在我的笔记本电脑(32位windows 7)上安装后,它可以正常工作。复制.msi文件并将其安装到我朋友的笔记本电脑(64位windows 10)上后,会显示此错误

我认为错误在我使用“win32com.client”的脚本部分。 如何使我的系统在其他平台上工作?我对这种东西不熟悉,所以我希望有人能帮助我

编辑:

这是我的setup.py脚本

from cx_Freeze import setup, Executable 
import sys
import os

os.environ['TCL_LIBRARY'] = r'C:\Users\Admin\AppData\Local\Programs\Python\Python35-32\tcl\tcl8.6' 
os.environ['TK_LIBRARY'] = r'C:\Users\Admin\AppData\Local\Programs\Python\Python35-32\tcl\tk8.6'

base = None

if sys.platform == 'win32':
    base = "Win32GUI"

if sys.platform == 'win64':
    base = "Win64GUI"

executables = [Executable("nafd.py", base=base,shortcutName="Nafd Encoding System",shortcutDir="ProgramMenuFolder", icon = "ntc96.ico")]


setup(
    name = "Nafd32",
    options = {"build_exe":{"packages": ["time","win32com.client","tkinter","openpyxl","functools","os","datetime","re","requests","io","math"],"include_files":["newlistofcity.txt","newlistofbrgy.txt","newlistofbrgycode.txt","ntc96.ico","tcl86t.dll", "tk86t.dll"]}},
    version = "2.1.5",
    description = "Network and Facilities Division Encoding System",
    executables = executables
)    

通过将pyinstaller创建的dist文件夹中的所有
.dll
包含在my
setup.py
中,解决了此问题。我不知道为什么cx\u Freeze没有从
win32com.client
复制
.dll
文件,但是pyinstaller复制了所有文件

通过将pyinstaller创建的dist文件夹中的所有
.dll
包含在my
setup.py
中,解决了该问题。我不知道为什么cx\u Freeze没有从
win32com.client
复制
.dll
文件,但是pyinstaller复制了所有文件

我尝试在脚本中使用pyinstaller。它在我朋友的笔记本电脑上工作。我认为cx_冻结没有包含win32com.client中的.dll。我尝试在脚本中使用pyinstaller。它在我朋友的笔记本电脑上工作。我认为cx_冻结没有包括win32com.client中的.dll。