# 28. 軟體封裝與發布

These libraries help you with publishing and installing Python software. While these modules are designed to work in conjunction with the Python Package Index, they can also be used with a local index server, or without any index server at all.

- 28.1. `distutils` — Building and installing Python modules
- 28.2. `ensurepip` — Bootstrapping the `pip` installer
  - 28.2.1. Command line interface
  - 28.2.2. Module API
- 28.3. `venv` — Creation of virtual environments
  - 28.3.1. Creating virtual environments
  - 28.3.2. API
  - 28.3.3. An example of extending `EnvBuilder`
- 28.4. `zipapp` — Manage executable python zip archives
  - 28.4.1. Basic Example
  - 28.4.2. 命令執行列介面
  - 28.4.3. Python API
  - 28.4.4. Examples
  - 28.4.5. Specifying the Interpreter
  - 28.4.6. Creating Standalone Applications with zipapp
    - 28.4.6.1. Making a Windows executable
    - 28.4.6.2. Caveats
  - 28.4.7. The Python Zip Application Archive Format