Python packaged executable file project

Installation package

pip install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple/ --default-timeout=100

New demo

Create a new blank folder demo anywhere
Insert picture description here
, open the cmd startup command in the blank folder demo

Package the .py script

pyinstaller -F D:\venv\PGUI.py
Insert picture description here

Start exe

Guess you like

Origin blog.csdn.net/tandelin/article/details/105310185