python - Pyinstaller:在 linux 中创建单个 shell 脚本
问题描述
我们可以使用 pyinstaller 创建单个 shell 脚本,就像我们在 windows 中使用 python 脚本创建单个 exe 一样pyinstaller --onefile
解决方案
不,你不能那样做。
但是,你可以使用这个:https ://github.com/ZYunH/Python-script-converter
它将 .py 转换为 mac 或 linux 上的 .command 可执行文件
推荐阅读
- java - 如何格式化每个 java 异常以不为每一行编写记录器?
- iis - Window10 iis Simultaneous Download Problem
- sql - Only include employees currently working for company
- sql - 从 oracle 表中过滤无效 id
- qt - QML repeater item highlight handling
- windows - In this AWS CLI command, why copying files with --exclude & --include wildcards not working?
- dynamic - In oracle apex, if the value of Upload Status column is NEW, then the Edit Button icon should be disabled
- c - 如何将ASCII值数组转换为C中的整数
- arrays - Map Tuples to Array Swift
- postgresql - 如何在 postgres 中创建表并插入具有动态值的数据