简体   繁体   English

当我尝试打开它时 pyinstaller 程序错误

[英]pyinstaller program errors when i try to open it

I ran the command pyinstaller --onefile -w file.py .我运行了命令pyinstaller --onefile -w file.py It worked, so like any other person I instantly went to test it.它奏效了,所以像其他任何人一样,我立即去测试它。 But when I ran it it gave me a error saying failed to execute script file inside of a windows error message.但是当我运行它时,它给了我一个错误,说在 windows 错误消息failed to execute script file I went to run the python script and it worked.我去运行 python 脚本,它工作。 I tried to run it with the console by running the command pyinstaller --onefile file.py and it gave me the same issue.我尝试通过运行命令pyinstaller --onefile file.py使用控制台运行它,它给了我同样的问题。

If you run the bundled application (not the script) from the console like file.exe on Windows or ./dist/file on Ubuntu you will see the actual source of the issue in the console.如果您从控制台运行捆绑的应用程序(而不是脚本),例如file.exe上的 file.exe 或./dist/file上的 ./dist/file,您将在控制台中看到问题的实际来源。 This will help you to resolve it.这将帮助您解决它。

I used docker because It was build exe from mac os.我使用 docker 因为它是从 mac os 构建的 exe。 see more https://hub.docker.com/r/cdrx/pyinstaller-windows查看更多https://hub.docker.com/r/cdrx/pyinstaller-windows

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我尝试打开 Pyinstaller 时,它关闭了我的程序 - Pyinstaller closes my program when I try to open it 我收到 pyinstaller 的错误,从 py 到 exe 的转换工作正常,但是当我尝试打开它时出现错误 - I am reciving an error for pyinstaller, conversion from py to exe works fine but there is an error when i try to open it 当我尝试将重启 function 添加到我的程序 PYTHON 时出现错误 - Errors when I try to add restart function to my program PYTHON 当我尝试安装pyinstaller时,无法运行命令 - When i try to install pyinstaller, I can't run the command Pyinstaller问题,当我尝试制作一个exe文件时 - Pyinstaller problem, when i try to make an exe file 当我尝试使用 pyinstaller 时它声称它没有安装,当我尝试安装它时它声称它已经安装? - When i try to use pyinstaller it claims that it's not installed, when i try to install it it claims it's already installed? Pygame 已安装,但是当我尝试运行我的程序时,window 不会打开 - Pygame is installed, but when I try to run my program the window won't open ImportError:没有名为“ xlsxwriter”的模块-当我使用Pyinstaller打包程序时 - ImportError: No module named 'xlsxwriter' - When i use Pyinstaller to pack the program Pyinstaller 程序工作正常,但如果我尝试使用 zip 或 7z 压缩它,它会冻结 windows - Pyinstaller program works fine, but if I try to compress it with zip or 7z it freezes windows 我尝试在 Django2 中迁移时出错 - Errors when I try to migrate in Django2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM