python打包exe

1、安装PyInstaller: 如果尚未安装PyInstaller,可以使用pip进行安装

pip install pyinstaller

2、打包主程序入口

pyinstaller --onefile prediction_page.py

3、把所需资源文件放到dist目录下

 

posted @ 2024-01-20 12:05  旺旺大菠萝  阅读(5)  评论(0编辑  收藏  举报