Because Python will often use to write scripts, it will be a lot easier to make exe, so check it and use pyinstaller.
Cmd + R enter command line input
pip install PyInstaller
After the installation is successful, cd to the directory of the .py file and execute it.
pyinstaller -F -i tubiao.ico wenjian.py
Because the exe icon file is .ico, so if it is jpg or png change the suffix, then there will be a dict folder in the directory, click into the exe file.
reference:
Pyinstaller (Python is packaged as an exe file) Requirements Analysis: python scripts can't be run on a machine that doesn't have python installed, so package the script into an exe file, reducing the...
Python is a very concise and efficient language, especially suitable for the development of some commonly used tools, but every time it needs to be executed on the command line or IDE, it is more trou...
Install Pyinstaller using PIP Classic packaging. Click on the file where your Python code is located. For example, you have the following folder Open the CMD in this path. For example, enter the CMD b...
2021-3-20 Today, I summarize: mainly, I want to achieve my own time to reward the target, but I can't put the other messy tools such as PY on the OC of the project group, so let the school girl pick i...
background Recently, the company's unity needs me to write scripts to convert data, and convert word or txt questions and answers into json. Since unity programmers are busy recently, I have free time...
Install Pyinstaller package pip install pyinstaller Use the pyinstaller command Common parameters https://www.jb51.net/article/206825.htm eg: -W does not display the command line window (the command l...
Pyinstaller Python programs will be packaged into EXE Article Directory Pyinstaller Python programs will be packaged into EXE installation Overall process Parameter Description PY single file It conta...
This blog uses inno setup download and install the required software, not the python module (can not use pip install) after installation package generated according to the following steps, the install...
Accidentally discovered an interesting blogPython-- painting a beautiful cherry trees (different species of cherry + Rose + Oh Christmas Tree) Inside python draw with the beautiful images like this: T...
Method: use pyinstaller 1): Install: 2): Enter the project path and execute: There is an .exe file in the dist directory, double-click to run...