python - 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
但两者的结果相同。如果有人可以帮助我,我感谢
解决方案
推荐阅读
- c++ - 将特定指针转换为 std::any 指针
- azure-devops - 在 Azure DevOps YAML 管道中进行身份验证以访问我的 Azure DevOps 包源的最佳方式(由 Paket 命令使用)
- c# - 从 Web 表单重定向到 MVC 索引视图
- unreal-engine4 - 未捕获的类型错误:无法读取 null 的属性“toLowerCase” - HTML5
- arrays - Angular在另一个数组中获取json数组
- bash - 如何使用 sed 替换包含方括号和美元符号的行中的单词?
- reactjs - Highcharts:有没有办法在PointHover上突出显示系列的对应y轴?
- python - Django as ORM - 异步执行更新查询而不阻塞
- amazon-web-services - 一旦在循环中创建文件,如何将文件从 ec2 实例移动到 S3?
- node.js - 从函数返回值到不同文件 Node.JS 中的调用函数