inch-whf 2022-10-11 13:57 采纳率: 85.7%
浏览 216
已结题

pyinstaller在windows下打包,在linux上执行的办法

python的pyinstaller在windows上目前只能打包出exe,也没有找到相关教程。非常感谢

  • 写回答

3条回答 默认 最新

  • Flashang_sg 2022-10-11 14:04
    关注

    PyInstaller Manual — PyInstaller 5.5 documentation
    https://pyinstaller.org/en/stable/

    根據說明書:
    PyInstaller is tested against Windows, MacOS X, and Linux.
    However, it is not a cross-compiler;

    to make a Windows app you run PyInstaller on Windows,
    and to make a Linux app you run it on Linux, etc.

    要在 linux 執行就需要在 linux 執行 pyinstaller 製作成 app.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 10月19日
  • 已采纳回答 10月11日
  • 创建了问题 10月11日