在 ubuntu 中运行 exe 文件(pyinstaller 输出)时出错

问题描述 投票:0回答:0

我有 python 文件(main.py),我使用此命令使用 pyinstaller 创建 .exe 文件:

pyinstaller main.py --onefile

我在 Ubuntu 中运行我的输出 (main.exe) 但不幸的是我看到这个错误:

cannot execute binary file: Exec format error 

我该如何解决?

我安装了 wine 并运行了

sudo wine main.exe

我看到程序错误:

the program main.exe has encountered a serious problem and needs to close. We are sorry for the enconvemience.

我检查了更多细节:

Unhandled exception: unimplemented function api-ms-win-crt-runtime-l1-1-0.dll.fetestexcept called in 64-bit code (0x000000007b011e0e).

python pyinstaller exe ubuntu-22.04
© www.soinside.com 2019 - 2024. All rights reserved.