我有 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).