PyInstaller库基本使用


概述:是第三方库,将py源码转换成无需源码的可执行文件   .py  pyinstaller    --> .exe

官网:https://pyinstaller.readthedocs.io/en/stable/usage.html

 

安装:(cmd命令行下)pip install pyinstaller

 

升级:(cmd命令行下)pip install --upgrade pyinstaller

使用:

(cmd命令行下)pyinstaller  -F 文件名.py                               -F :在dist文件夹中只生成独立的打包文件

 

 

 (cmd命令行下)pyinstaller  -F 文件名.py -i 图标文件名.ico                             -F :在dist文件夹中只生成独立的打包文件      -i 指定打包程序使用的图标(icon)文件

 

 

 

 

 

 




 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM