SoFunction
Updated on 2024-11-12

Summary of various exception handling schemes for Python packaged exe

Exception.

You are using pip version 10.0.1, however version 21.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Programs.

Run - > cmd - > command

python -m pip install --upgrade pip

Find Scripts in the Python directory and add it to the system environment variable.

as shown

在这里插入图片描述
在这里插入图片描述

Execute the packing command

1. Run - > cmd -> cd the .py directory you need to package as shown below

在这里插入图片描述

2 pyinstaller -F the name of the package you need to package.py

Note: Please use English names if possible, otherwise there will be problems. Wait for a while and the package will be ready!

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

3 with custom program icon generation instructions

Note: The ico icon can be customized from Just make it up or use your personal favorite. Featured: Alibaba Vector Gallery . The effect if the picture

pyinstaller -w -F -i root directory.ico You need to pack the.py

在这里插入图片描述
在这里插入图片描述

To this point this article on Python packaged exe when a variety of exception handling scheme summarizes the article is introduced to this, more related Python packaged exe exception handling content, please search for my previous articles or continue to browse the following related articles I hope that you will support me more in the future!