使用pyinstaller编译python文件

1、安装pyinstaller

pip install pyinstaller

2、编译

pyinstaller yourprogram.py

具体操作

1、编译

d:

cd python

pyinstaller helloworld.py

2、找到目标文件

cd D:pythondisthelloworld

3、执行

helloworld

4、退出目录

cd

原文地址:https://www.cnblogs.com/programer-xinmu78/p/10661174.html