pyinstaller与--onefile和--onedir有关的问题 [英] pyinstaller issues with --onefile and --onedir

查看:163
本文介绍了pyinstaller与--onefile和--onedir有关的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道还有其他一些主题可以解决此问题,例如,和.尽管已经尝试了这些主题中所有建议的解决方案,但pyinstaller仍然存在该文件已存在错误.是我编辑规范文件的方式,但是没有用.在使用py2exe遇到dll错误之后,我想我应该尝试pyinstaller,它至少可以完成与py2exe不同的简单程序的编译,但是现在pyinstaller出现了此错误,我发现的任何解决方案都不适合我.

I am aware that there are several other topics address this issue, such as this, and this. Despite having tried all of the suggested solutions in those topics, I am still getting that file already exists error with pyinstaller. This is how I edited the spec file and that didn't work. After getting dll errors with py2exe I thought I'd try pyinstaller which can at least finish compiling my simple program unlike py2exe, but now I'm having this error with pyinstaller and none of the solutions I found worked for me.

这些是我使用--onefile分发时遇到的问题.使用--onedir,它可以编译我的程序,并且当我双击.exe时,它不会给我任何错误,但是它什么也没做.没有错误,也没有窗口.我完全被困在这里,将不胜感激.预先感谢.

These are the issues I'm having with --onefile distribution. With --onedir, it compiles my program and when I double click the .exe, it doesn't give me any errors, but it just doesn't do anything. No errors but also no window. I'm completely stuck here and will appreciate any help with this. Thanks in advance.

推荐答案

控制台中没有输出,因为您已设置

There is no output in the console because you have set

console = False

在您的规格文件中.尝试使用

in your spec file. Try to compile using

console = True

然后您将能够看到错误.

then you will be able to see the errors.

这篇关于pyinstaller与--onefile和--onedir有关的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆