前提条件
安装pyinstaller:pip install pyinstaller
备注:最好不要选择anaconda打包,它会把所有的依赖包打进去,建议安装纯净版python,使用cmd进行打包
打包方法
Step1: Win+R 进入运行,cmd进入执行器
Step2: 进入python程序所在文件夹,e.g. "cd C:/Users/Desktop/Program"
Step3: 使用pyinstaller进行打包,命令“pyinstaller -F program_name.py”