In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about compiling python code into exe files using what the two software are, the editor thinks it is very practical, so share it with you to learn, I hope you can get something after reading this article, without saying much, follow the editor to have a look.
It is interesting to compile python code into exe-related files, and there will be a lot of software that will compile python code into exe-related files in the implementation of this step.
Py2exe
First download the file (link), the installation is relatively simple, all the way to the next step. Create an example file, foobar.py:
Print "foobar"
Create an installation file, setup.py:
From distutils.core import setup import py2exe setup (console= ['foobar.py'])
Execute:
Python setup.py py2exe
Pyinstaller
Download the file (link) first, just unzip it to the appropriate location. Create an example file, foobar.py:
Print "foobar"
The following is done in the unzipped directory (the following code is very helpful for compiling python code into exe files). Configure pyinstaller:
Python Configure.py
Generate the spec file:
Python Makespec.py-F-c foobar.py
Execute:
Python Build.py foobar/foobar.spec
Py2exe can also be packed with only one exe package without library.zip.
These are the two softwares used to compile python code into exe files. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.