Github下载地址:https://github.com/pyinstaller/pyinstaller/
1、下载完成后解压缩,然后在文件夹pyinstaller-develop下,将你的py文件放入
2、shift+鼠标右键打开命令行
3、运行python pyinstaller.py -F 你的文件.py
4、生成 你的名字 文件夹,里面的dist文件夹里就是你的exe
本文介绍如何使用 PyInstaller 将 Python 脚本打包成独立的可执行文件。步骤包括下载并解压 PyInstaller,将 py 文件放入指定文件夹,通过命令行运行打包命令,最终生成 exe 文件。
Github下载地址:https://github.com/pyinstaller/pyinstaller/
1、下载完成后解压缩,然后在文件夹pyinstaller-develop下,将你的py文件放入
2、shift+鼠标右键打开命令行
3、运行python pyinstaller.py -F 你的文件.py
4、生成 你的名字 文件夹,里面的dist文件夹里就是你的exe

被折叠的 条评论
为什么被折叠?