首页 > 解决方案 > Pyinstaller:在 linux 中创建单个 shell 脚本

问题描述

我们可以使用 pyinstaller 创建单个 shell 脚本,就像我们在 windows 中使用 python 脚本创建单个 exe 一样pyinstaller --onefile

标签: pythonpyinstaller

解决方案


不,你不能那样做。

但是,你可以使用这个:https ://github.com/ZYunH/Python-script-converter

它将 .py 转换为 mac 或 linux 上的 .command 可执行文件


推荐阅读