Python3 pyinstaller打包.py文件成生成exe文件

1。安装pyinstaller
pip3 install pyinstaller
2.找到要打包的py文件目录,打开cmd,输入命令:
pyinstaller -F 1.py #
注:如打包的exe运行后无需黑框,请输入pyinstaller -F 1.py --noconsole
3.exe文件在dist文件夹中

你可能感兴趣的:(Python)