Python logo

上一个主题

tracemalloc --- 跟踪内存分配

下一个主题

distutils --- 构建和安装 Python 模块

本页

  • 报告 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.8.18 Documentation »
  • Python 标准库 »
  • |
  • |

软件打包和分发¶

这些库可帮助你发布和安装 Python 软件。 虽然这些模块设计为与`Python 包索引 <https://pypi.org>`__结合使用,但它们也可以与本地索引服务器一起使用,或者根本不使用任何索引服务器。

  • distutils --- 构建和安装 Python 模块
  • ensurepip --- 引导 pip 安装器
    • 命令行界面
    • 模块 API
  • venv --- 创建虚拟环境
    • 创建虚拟环境
    • API
    • 一个扩展 EnvBuilder 的例子
  • zipapp —— 管理可执行的 Python zip 打包文件
    • 简单示例
    • 命令行界面
    • Python API
    • 例子
    • 指定解释器程序
    • 用 zipapp 创建独立运行的应用程序
      • 制作 Windows 可执行文件
      • 注意事项
    • Python 打包应用程序的格式

上一个主题

tracemalloc --- 跟踪内存分配

下一个主题

distutils --- 构建和安装 Python 模块

本页

  • 报告 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.8.18 Documentation »
  • Python 标准库 »
  • |
  • |
© 版权所有 2001-2024, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.

The Python Software Foundation is a non-profit corporation. Please donate.

最后更新于 2月 08, 2024. Found a bug?
Created using Sphinx 2.4.4.