有哪些技术可以为Python 3创建独立的可执行文件? [英] What technologies exist to create stand alone executables for Python 3?

查看:71
本文介绍了有哪些技术可以为Python 3创建独立的可执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了 cx_Freeze 之外,是否还有任何其他当前维护的工具套件可以生成用于以下目的的独立可执行文件: Python 3k?

Other than cx_Freeze, are there any other current maintained tool suites to generate stand alone executables for Python 3k?

还有其他技术可以最大限度地减少Windows下的预安装要求吗?

Are there any other techniques for minimizing preinstallation requirements under Windows?

推荐答案

目前似乎没有其他选择.

There doesn't seem to be another choice of tool at the moment.

没有什么可以阻止您在包/安装程序中包含预构建的Python环境,或者创建适当的快捷方式来启动Python应用程序,或者创建一个单独的可执行文件来启动Python应用程序(甚至将Python解释器链接到可执行文件中)并像那样使用它...).只需花费更多的精力来确保您已将所有正确的文件(例如.dll)放在需要的位置.

There's nothing stopping you from including a prebuilt Python environment in your package/installer and either creating an appropriate shortcut to launch the Python app, or creating a separate executable that launches the Python app (or even linking the Python interpreter into the executable and using it like that...). It just takes some more effort making sure you've got all the right pieces (like .dlls) where they need to be.

请记住,Python本身不必安装",您只需要确保它知道在哪里可以找到所有内容(例如,在使用的任何启动器中设置适当的环境变量,如PYTHONPATH).

Remember, Python doesn't have to be "installed" per se, you just need to make sure it knows where to find everything (e.g. set the appropriate environment variables like PYTHONPATH in whatever launcher you're using).

这篇关于有哪些技术可以为Python 3创建独立的可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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