The python file is packaged into an exe executable file

package command


# 安装打包工具
pip install pyinstaller


# 打包项目的依赖信息文件
pip freeze > reqirements.txt

# 前台打包,运行时会弹出黑框
pyinstaller -D python文件

# 后台运行打包
pyinstaller -D python文件 -w

Note: The package is a folder, and the configuration file will not be packaged at the same time. If there is a related project configuration file, remember to manually add it to the packaged folder.

Supongo que te gusta

Origin blog.csdn.net/m0_55868614/article/details/126112614
Recomendado
Clasificación