如何捆绑包括依赖项的Python应用程序? [英] How to bundle a Python application including dependencies?

查看:110
本文介绍了如何捆绑包括依赖项的Python应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将我的Python应用程序,其依赖项和Python打包到一个MSI安装程序中.最终结果应该是:

I need to package my Python application, its dependencies and Python into a single MSI installer. The end result should desirably be:

  • Python已安装在标准位置
  • 该软件包及其依赖项安装在单独的目录(可能是站点软件包)中
  • 安装目录应包含未压缩的Python,并且不需要独立的可执行文件

推荐答案

关于如何将python变成可执行文件.

它可以归结为:

py2exe py2app .

py2exe on windows, Freeze on Linux, and py2app on Mac.

这篇关于如何捆绑包括依赖项的Python应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆