Python logo

上一主题

tracemalloc --- 跟踪内存分配

下一主题

ensurepip --- 初始设置 pip 安装器

当前页

  • 报告 Bug
  • 显示源码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.13.1 Documentation »
  • Python 标准库 »
  • 软件打包和分发
  • |
  • |

软件打包和分发¶

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

  • ensurepip --- 初始设置 pip 安装器
    • 命令行界面
    • 模块 API
      • version()
      • bootstrap()
  • venv --- 虚拟环境的创建
    • 创建虚拟环境
    • 虚拟环境是如何实现的
    • API
      • EnvBuilder
        • create()
        • ensure_directories()
        • create_configuration()
        • setup_python()
        • setup_scripts()
        • upgrade_dependencies()
        • post_setup()
        • install_scripts()
        • create_git_ignore_file()
      • create()
    • 一个扩展 EnvBuilder 的例子
  • zipapp --- 管理可执行的 Python zip 归档文件
    • 简单示例
    • 命令行接口
    • Python API
      • create_archive()
      • get_interpreter()
    • 例子
    • 指定解释器程序
    • 用 zipapp 创建独立运行的应用程序
      • 注意事项
    • Python 打包应用程序的格式

上一主题

tracemalloc --- 跟踪内存分配

下一主题

ensurepip --- 初始设置 pip 安装器

当前页

  • 报告 Bug
  • 显示源码
«

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.13.1 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.
See History and License for more information.

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

最后更新于 12月 06, 2024 (06:47 UTC). Found a bug?
由 Sphinx 8.1.3创建。