Discover create python executable linux, include the articles, news, trends, analysis and practical advice about create python executable linux on alibabacloud.com
Compile an executable. py file from the ground up in Python,
Python is really powerful. But how powerful is he? Let's get to know it at. (It's good for me to take time to take a look at the tutorials when I come home from work every night ).
Let's talk about the background:
This is the case ~ In a studious spirit, I bought a book and learned the
Starting with Python 2.4, Python introduced the Subprocess module to manage sub-processes to replace some of the older modules ' methods:Os.system, Os.spawn, Os.popen, Popen2, commands.Not only can the external command be called as a child process, but it can also be connected to the Input/output/error pipeline of the child process to get the related return information.The subprocess package defines a numbe
is the default option. (Create a folder name containing an executable name and all support files.) This is the default.)-F,--onefile create an EXE file, all dependent files are packaged into this EXE file, this EXE will be relatively large, but I feel convenient to use. (Create a single
The Python script file is packaged as an executable file for two purposes:
A: You do not need to rely on the Python compiler to run the softwareTwo: Do not want to let their own source published
Commonly used tools are: Py2exe, Cx_freeze, etc.
"Tools: Py2exe"
Installing Py2exeInstalling the tool is simple:Just download the installer for the version from the offi
Cx_freezeCx_freeze is a third-party library that can be used to package Python code into an executable file, and here's how to use a script file to turn Python code into an EXE executable file.First, you need to install the Cx_freeze, you can use the PIP to install, the installation method is as followsPip Install Cx_f
value of the EIP in the kernel stack to point to the elf_ Entry, jump to Elf_entry execution.For statically linked executable programs, Elf_entry is the starting point for the new program's execution. For dynamically linked executable programs, you need to load the linker ld first,Elf_entry = Load_elf_interp (...)The CPU control is given to the LD to load the dependent library, and the LD returns the CPU c
Python provides a description of the built-in functions for calling executable objects, involving exec, Eval, and compile three functions. The EXEC statement is used to execute a python statement stored in a code object, a string, a file, and the eval statement is used to calculate a valid python expression stored in a
body of the function (local), it is represented as a local static variable. In addition, if you add static to a function name, it means that it can only be called in the current file.
Uninitialized data area (also called BSS area):
The global uninitialized variable and the uninitialized static variable are deposited. Data in the uninitialized data area is initialized to 0 or empty (null) by the kernel before the program begins execution.
For example, an uninitialized va
initialized to 0 or empty (null) by the kernel before the program begins execution.
For example, an uninitialized variable that is not declared within any function.
Long sum[1000];
The sum is stored in the uninitialized data area.
Linux Process ArchitectureUnder a Linux system, if an executable is loaded into memory, it will becom
formatNote: abi--Application Binary interface(2) Elf classificationrelocatable Files: Save code and appropriate data to create an executable file or a shared file with other object files.Executable: holds a program to execute, which indicates how EXEC (BA_OS) creates the process image of the program.Shared files: Save the code and the appropriate data to be linked by the following two linker. • The first i
the original executables--return to the new executor, as a starting point (that is, the main function), need to construct his execution environment.V. What is the difference between a static-linked executable program and a dynamically-linked executable program EXECEV system call returns?Static Link: elf_entry points to the head of the executable file, usually th
Make a linux executable program into a serviceWhen the linux system is started, we can see that many service programs are started one by one (that is, the lines with blue [OK ), these programs run in the background play an important role in using computers. The programs run in this way have the following features:Startup, shutdown, and background runningUse servi
When the Linux system starts, we can see that many service programs are started one after another (that is, those with a blue [OK] in the back), these programs run in the background for us to use the computer played a very important role in this way to run the program has the following characteristics:Boot , shutdown, background runControl or view the running state of the corresponding program through the service commandWell, good, then how to make ou
Article reprinted to CSDN community Luo Shenyang's Android tour, original address: http://blog.csdn.net/luoshengyang/article/details/6571210In the previous article, we described how to write a Linux kernel driver for an Android system on Ubuntu. In this Linux kernel driver called Hello, create three different file nodes for user space access, namely traditional d
Kuregaku Shandong Normal University"Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000Experimental purpose: Through a simple executable program with GDB code tracking, how the Linux kernel dynamic and static load and start the program, and then summarize the Linux kernel
The. py file in Python is packaged into an exe executable file,
Preface
Recently I made several simple python crawler programs, so I wanted to make a window to see the results.
First of all, if you have never touched the window before, you should first consider using Qt to create a simple ui. Here, we use the crawler s
When the linux system is started, we can see that many service programs are started one by one (that is, the lines with blue [OK ), these programs run in the background play an important role in using computers. The programs run in this way have the following features:Start and shut down (nonsense! Shut down and run ???)Background runningUse service commands to control or view the running status of the corresponding programWell, that's good. How can w
In the previous article, we introduced how to write the Linux kernel driver for the Android system on Ubuntu. In the Linux kernel driver named hello, create three different file nodes for user space access, these are the traditional device files/dev/Hello, Proc system files/proc/Hello, And devfs system property files/sys/class/Hello/Val. In addition, the cat comm
In the previous article, we described how to write Linux kernel drivers for the Android system on Ubuntu. In this Linux kernel driver named Hello, three different file nodes are created for user space access, traditional device file/dev/hello, proc system file/proc/hello and DEVFS System Properties file/sys/class/ Hello/hello/val. Further, the/proc/hello and/sys/class/hello/hello/val files are accessed dire
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.