什么是Python冻结过程? [英] What is the Python freeze process?
问题描述
Python文档指出:
The Python Doc states:
冻结模块是用Python编写的模块,其编译后的字节码 对象被并入到定制的Python解释器中 Python的冻结工具.暂时请参阅工具/冻结/.
Frozen modules are modules written in Python whose compiled byte-code object is incorporated into a custom-built Python interpreter by Python’s freeze utility. See Tools/freeze/ for now.
http://docs.python.org/library/imp.html# imp.init_frozen
我不明白.什么是冻结实用程序?如何使用?为什么要使用它?
I don't get it. What is the freeze utility? How can it be used? Why would it be used?
推荐答案
此链接详细说明了Python Freeze实用程序: http://wiki.python.org/moin/Freeze
This link explains what the Python Freeze utility is in detail: http://wiki.python.org/moin/Freeze
简而言之,它创建了可移植版本的python脚本,该脚本带有自己的内置解释器(基本上像二进制可执行文件),因此您可以在没有python的计算机上运行它.
In a nutshell, it creates a portable version of a python script that carries its own built in interpreter (basically like a binary executable), so that you can run it on machines without python.
这篇关于什么是Python冻结过程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!