Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a frozen Python module?

Tags:

python

module

imp

The Python help of the module imp is talking about a frozen module. What is it?

http://docs.python.org/library/imp.html#imp.PY_FROZEN

like image 609
Dave Halter Avatar asked Mar 28 '12 22:03

Dave Halter


People also ask

Why won't Python recognize my module?

This is caused by the fact that the version of Python you're running your script with is not configured to search for modules where you've installed them. This happens when you use the wrong installation of pip to install packages.

What is a Python module explain with example?

What are modules in Python? Modules refer to a file containing Python statements and definitions. A file containing Python code, for example: example.py , is called a module, and its module name would be example . We use modules to break down large programs into small manageable and organized files.

What are Python library modules?

A Python library is a collection of related modules. It contains bundles of code that can be used repeatedly in different programs. It makes Python Programming simpler and convenient for the programmer. As we don't need to write the same code again and again for different programs.


1 Answers

This link explains what the Python Freeze utility is in detail: http://wiki.python.org/moin/Freeze

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.

like image 72
jdi Avatar answered Sep 21 '22 02:09

jdi