PyInstaller打包python程序
来源:互联网 发布:数控车床攻丝编程实例 编辑:程序博客网 时间:2024/05/11 18:10
使用pyinstaller打包python为exe文件
最近用python的tkinter写了个windows界面的工具,用来对软件版本发布的自动化,之前发布版本是由PHP的同事完成,又是手动上传文件到ftp,又是修改数据库,php代码等这么多繁琐的步骤。所以决定用python写了个windows的应用,因为版本发布可能会交给运营的同事完成,所以用tkinter写了个界面,顺便转换成exe的文件,之前是用py2exe,觉得不好用,搜索到了pyinstaller,还不错,使用简单,且打包成exe兼容性好,下面记录方法。
1、下载pyinstaller
目前pyinstaller支持的python版本为2.3-2.7,可以到http://www.pyinstaller.org/官网下载。
2、安装
下载完成后,解压即可。
3、pyinstaller使用方法
使用也非常的简单,cmd下进入解压出来的目录,执行如下命令。
python pyinstaller.py [opts] yourprogram.py
主要选项包括:
-F, --onefile 打包成一个exe文件。
-D, --onedir 创建一个目录,包含exe文件,但会依赖很多文件(默认选项)。
-c, --console, –nowindowed 使用控制台,无界面(默认)
-w, --windowed, --noconsole 使用窗口,无控制台
更详细的使用方法请参考下载包里的doc目录下的Manual.html文件。
0 0
- PyInstaller打包python程序
- Python程序打包--PyInstaller
- python 打包程序 pyinstaller py2exe
- PyInstaller-2.1打包python程序
- 使用PyInstaller打包Python程序
- PyInstaller打包Python程序详解
- 【Python开发】PyInstaller打包Python程序
- python程序打包工具py2exe/pyInstaller
- 采用pyinstaller 2.0打包python程序
- 使用 pyinstaller 打包 Python 程序为可执行文件
- python程序打包(py2exe, pyinstaller, cxfreeze)
- pyinstaller的使用python 打包程序
- Python 使用pyinstaller打包exe程序
- Python程序打包--pyinstaller库的使用
- python--利用PyInstaller打包exe程序
- pyinstaller打包python(PyQt5)程序(windows)
- pyinstaller打包python
- !!!pyinstaller 打包 python
- C链表实现约瑟夫环
- 云购系统、一元云购系统接入短信验证及订单通知功能
- Codeforces Round #295 (Div. 2) E. Pluses everywhere
- 【Unity基础知识④】数据类型,内存大小,数据的范围以及整型
- c++设计模式(桥接模式)
- PyInstaller打包python程序
- iOS开发 - 详谈属性设置readwrite、readonly、retain、copy、assign、nonatomic
- SQL慢查询分析,原因及优化
- vs2013 静态编译Qt和配置方法
- mac 下读写非hid的usb设备
- Linux Shell脚本攻略(一)
- java继承和组合的优缺点
- CentOS 6.3下Samba服务器的安装与配置
- Ibatis动态字段查询