Skip to main content

pack-py

一个简单易用的GUI工具,用于将Python文件打包成可执行文件(.exe)。支持两种打包方式:pyinstaller和nuitka。

安装

一: 使用pip安装 pip install pack-py 安装后,会自动安装所需的依赖,包括PyQt5、pyinstaller和nuitka

二: 以管理员身份打开命令行(Windows:右键点击“命令提示符”/“PowerShell” → 选择“以管理员身份运行”); 执行安装命令:

pip install pack-py

## 使用方法

1. 在命令提示符(CMD)或PowerShell中输入:
```bash
pack-py
  1. 程序会打开一个图形界面,你可以:

    • 选择要打包的Python文件(.py)
    • 选择输出目录
    • 选择打包工具(pyinstaller或nuitka)
    • 设置可执行文件名称
    • 选择图标(可选)
    • 选择是否使用单文件模式
    • 选择是否隐藏控制台窗口
  2. 点击"开始打包"按钮,等待打包完成。

功能特点

  • 简单直观的图形界面
  • 支持两种主流打包工具
  • 提供常用打包选项配置
  • 实时显示打包日志
  • 打包完成后自动打开输出目录

注意事项

  • 确保你的Python脚本可以正常运行,没有缺少依赖
  • 对于复杂项目,可能需要额外的配置
  • 大型项目打包可能需要较长时间,请耐心等待

Metadata

Release files for pack-py-exe 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pack-py-exe 0.2.0
File Size Uploaded
pack_py_exe-0.2.0.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pack-py-exe 0.2.0
File Interpreter ABI Platform
pack_py_exe-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / pack_py_exe-0.2.0.tar.gz

Download URL pack_py_exe-0.2.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
90a96611509cdd5f683032e97e757fb2baa537b9c7479a289ce82c12420b4cdb
BLAKE2b-256 checksum
How to use checksums
896d40b2ae0f19828d9b793c66694cf9dae95d457c1789d60e8792d820b08529
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.6

Release files / pack_py_exe-0.2.0-py3-none-any.whl

Download URL pack_py_exe-0.2.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
870ce4d5d3cdc488a0708f6bc20ce7bfdb4547f1886a032a49afca4f9da346db
BLAKE2b-256 checksum
How to use checksums
25bf93afcd5599318e050d8794f8fc6ce6d2dbfb3c3fcce8d6cd01a66ddad7e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page