首页 > 解决方案 > pyinstaler 创建的 .exe 问题

问题描述

我使用 pyinstaler 创建了一个 .exe,但它没有打开,只是创建一个 cmd 窗口几毫秒然后关闭,幸运的是我可以在正确的时间拍摄 cmd 的照片,这是这样写的:

traaceback (most recent last call last):
File "TEST.py", line 1, in <module> 
File "c: \ users \*****\ appdata \ local \ programs \ python \ python38-32 \ lib \ site-packages \ 
PyInstaller  \ loader \ pyimode3_importers py ", line 493, in exec_module 
   exec (bytecode, module.dict) 
File" pynput_init_.py ", line 40, in <module> 
File" c: \ users \*****\ appdata \ local \ programs \ python  \ python38-32 \ lib \ site-packages \ 
PyInstaller \ loader \ pyimod03_importers py ", line 493, in exec_module
exec (bytecode, module.dict) File" pynput \ keyboard \ _ init-py ", line 31, in <module  
File "pynputLutil \ _init_.py", line 76, in the ImportError backend
[40412] Failed to run the TEST script

我不知道这意味着什么以及如何解决问题,我首先尝试了 auto-py-to-exe,它给出了这个结果,所以我通过 cmd 手动尝试了, pyinstaller TEST但两者的结果相同。如果有人可以帮助我,我感谢

标签: pythonpyinstaller

解决方案


推荐阅读