1.在windows命令行把当前文件夹用cd命令切换到源代码所在文件夹。 2.输入命令:pyinstaller -w -F main.py 转载于:https://www.cnblogs.com/yibeimingyue/p/9951557.html