[英]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.