Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python cx\u冻结文件错误2系统找不到指定的文件_Python_Exe_Executable_Cx Freeze - Fatal编程技术网

Python cx\u冻结文件错误2系统找不到指定的文件

Python cx\u冻结文件错误2系统找不到指定的文件,python,exe,executable,cx-freeze,Python,Exe,Executable,Cx Freeze,您好,我正在运行windows 10 64位。我正在尝试从python文件生成一个可执行文件。我使用cx\u freeze进行此操作,但出现了一个错误。 这是我使用的代码 import sys from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need fine tuning. build_exe_options = {"packages": ["os"

您好,我正在运行windows 10 64位。我正在尝试从python文件生成一个可执行文件。我使用cx\u freeze进行此操作,但出现了一个错误。 这是我使用的代码

import sys
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os"]}

# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
   base = "Win32GUI"

setup(  name = "My program",
    version = "1.0.0",
    description = "My program",
    options = {"build_exe": build_exe_options},
    executables = [Executable(Main.py", base=base, icon="Video Cut V1.0.0.ico")])
这就是我犯的错误

running build
running build_exe
creating directory build\exe.win-amd64-3.8
copying 
C:\Users\.3.8_a8p0\site-packages\cx_Freeze\bases\Win32GUI.exe -> \exe.win-amd64-3.8\Main.exe
copying C:\Program 
Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\python38.dll -> build\exe.win-amd64-3.8\python38.dll
error: [WinError 2] Het systeem kan het opgegeven bestand niet vinden: 'build\\exe.win-amd64-3.8\\Video Cut.exe'