一、安装pyinstaller
pip install pyinstaller
二、打包程序(pyinstaller.exe在python下的“Scripts”文件夹下)
python pyinstaller.exe -F -w D:\Publish.py
-F代表将程序所依赖的库合成为一个整体,只生成一个exe文件
-w代表不出现控制台窗口
Python脚本转换为exe程序
最新推荐文章于 2025-03-02 14:50:04 发布
一、安装pyinstaller
pip install pyinstaller
二、打包程序(pyinstaller.exe在python下的“Scripts”文件夹下)
python pyinstaller.exe -F -w D:\Publish.py
-F代表将程序所依赖的库合成为一个整体,只生成一个exe文件
-w代表不出现控制台窗口