Python代码转换为exe可执行程序详解

序言

安装pyinstaller

pip3 install pyinstaller -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com

Python窗体

from tkinter import *
root= Tk()
root.title('我的第一个Python窗体')
root.geometry('240x240') # 这里的乘号不是 * ,而是小写英文字母 x
root.mainloop()

打包exe

pyinstaller -F hello.py

资料

https://blog.csdn.net/woshisangsang/article/details/73230433

PyCharm下打包*.py程序成.exe

https://blog.csdn.net/zwx19921215/article/details/85234801

原文地址:https://www.cnblogs.com/cnki/p/10920870.html