下面是python脚本:
我使用Visual Studio代码使用以下命令运行文件:
我得到了想要的结果:
现在,我试图通过打开文件夹中的PowerShell来创建.exe文件,该文件夹是我的脚本和 运行下一行:
以下是我得到的资料(不包括otherScripts文件夹):
现在,我打开CMD,导航到所需的文件夹,并使用下面几行代码运行.exe文件:
以下是我得到的第一个警告:
这是我得到的回溯(控制台立即关闭,我无法使用剪切工具捕获错误,因此我通过C#Win表单应用程序运行它,并将标准错误重定向到表单中的标签):
我试过:
这些东西都不管用。我被困在这里了。 我真的非常感谢任何帮助来解决这个问题
对我来说,将“tqdm目录”添加到数据解决了问题:)
在脚本中规范:
尝试使用
exclude-module=torch
构建(取自:https://github.com/pyinstaller/pyinstaller/issues/4695)相关问题 更多 >
编程相关推荐