“Auto Py To Exe”不会创建 OUTPUT 文件夹

问题描述 投票:0回答:0

当我尝试创建 exe 文件时,进程停止并抛出错误。并且未创建 OUTPUT 文件夹。 这是错误信息:

打包时发生错误 追溯(最近一次通话): 文件“C:\Users\Dell\Desktop\PythonProject pp env\Lib\site-packages\pefile.py”,第 2975 行,在 parse fd = open(fname, "rb") ^^^^^^^^^^^^^^^^^ OSError:[Errno 22] 无效参数:'C:\Users\Dell\AppData\Local\Temp mpv6cs94eo uild\main\main.exe.notanexecutable'

在处理上述异常的过程中,又出现了一个异常:

回溯(最后一次通话): 文件“C:\Users\Dell\Desktop\PythonProject pp env\Lib\site-packages uto_py_to_exe\packaging.py”,第 131 行,在包中 run_pyinstaller() 文件“C:\Users\Dell\Desktop\PythonProject pp env\Lib\site-packages\PyInstaller_main_.py”,第 180 行,在运行中 run_build(pyi_config, spec_file, **vars(args)) 文件“C:\Users\Dell\Desktop\PythonProject pp env\Lib\site-packages\PyInstaller_main_.py”,第 61 行,在 run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) 文件“C:\Users\Dell\Desktop\PythonProject pp env\Lib\site-packages\PyInstaller uilding uild_main.py”,第 978 行,在 main 构建(规范文件、distpath、工作路径、clean_build) 文件“C:\Users\Dell\Desktop\PythonProject pp env\Lib\site-packages\PyInstaller uilding uild_main.py”,第 900 行,在构建中 执行(代码,spec_namespace) 文件“C:\Users\Dell\AppData\Local\Temp mpv6cs94eo\main.spec”,第 24 行,位于 执行=执行( ^^^^ init 中的文件“C:\Users\Dell\Desktop\PythonProject pp env\Lib\site-packages\PyInstaller uilding pi.py”,第 594 行 self.postinit() 文件“C:\Users\Dell\Desktop\PythonProject pp env\Lib\site-packages\PyInstaller uilding\datastruct.py”,第 173 行,在postinit 自组装() 文件“C:\Users\Dell\Desktop\PythonProject pp env\Lib\site-packages\PyInstaller uilding pi.py”,第 834 行,在汇编中 winutils.set_exe_build_timestamp(build_name,build_timestamp) 文件“C:\Users\Dell\Desktop\PythonProject pp env\Lib\site-packages\PyInstaller\utils\win32\winutils.py”,第 157 行,set_exe_build_timestamp 用 pefile.PE(exe_path, fast_load=True) 作为 pe: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ init 中的文件“C:\Users\Dell\Desktop\PythonProject pp env\Lib\site-packages\pefile.py”,第 2895 行 self.parse(名称,数据,快速加载) 文件“C:\Users\Dell\Desktop\PythonProject pp env\Lib\site-packages\pefile.py”,第 2987 行,在 parse 引发异常( 异常:无法访问文件 'C:\Users\Dell\AppData\Local\Temp mpv6cs94eo uild\main\main.exe.notanexecutable':[Errno 22] 无效参数:'C:\Users\Dell\AppData\Local \Temp mpv6cs94eo uild\main\main.exe.notanexecutable'

项目输出不会移动到输出文件夹 完成。

我尝试重新安装python并安装了最新版本的PIP。

python exe tinker
© www.soinside.com 2019 - 2024. All rights reserved.