Software Packaging and Distribution

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.

  • distutils — Building and installing Python modules
  • ensurepip — Bootstrapping the pip installer
    • Command line interface
    • Module API
  • venv — Creation of virtual environments
    • Creating virtual environments
    • API
    • An example of extending EnvBuilder
  • zipapp — Manage executable Python zip archives
    • Basic Example
    • Command-Line Interface
    • Python API
    • Examples
    • Specifying the Interpreter
    • Creating Standalone Applications with zipapp
      • Making a Windows executable
      • Caveats
    • The Python Zip Application Archive Format

© 2001–2022 Python Software Foundation
Licensed under the PSF License.
https://docs.python.org/3.9/library/distribution.html