[Python]实现Python脚本转EXE
2017-04-12 19:38
183 查看
构建环境
C:\Python27\Tools\pyinstaller>python -V Python 2.7.10 C:\Python27\Tools\pyinstaller>pip install pypiwin32 C:\Python27\Tools\pyinstaller>pip install pyinstaller
转换命令
C:\Tools\>pyinstaller -F helloworld.py 240 INFO: PyInstaller: 3.2.1 240 INFO: Python: 2.7.10 240 INFO: Platform: Windows-7-6.1.7601-SP1 ... 248 INFO: Initializing module dependency graph... 250 INFO: Initializing module graph hooks... ... 3853 INFO: Building EXE from out00-EXE.toc completed successfully. C:\Tools\>tree /f Folder PATH listing Volume serial number is 00000200 6E5E:00DE C:. │ helloworld.py │ helloworld.spec │ ├─build │ └─helloworld │ helloworld.exe.manifest │ out00-Analysis.toc │ out00-EXE.toc │ out00-PKG.pkg │ out00-PKG.toc │ out00-PYZ.pyz │ out00-PYZ.toc │ warnhelloworld.txt │ └─dist helloworld.exe
小结
查阅网上资料,初步确定了py2exe和pyinstaller,由于py2exe开发已经停滞在2008年,所以果断选择pyinstaller。目前的命令已经满足博主的需求,以后有需要再深入研究吧参考
知乎:python3.4写好的.py文件如何打包成exe?用Py2exe打包Python脚本简单介绍
相关文章推荐
- Python脚本生成的exe文件自动升级程序实现方法
- 系统访问日志统计及邮件发送脚本--python实现
- pyinstaller 打包 python 脚本成 exe 的坑
- 深度学习 python 脚本实现 keras mninst 数字识别 预测端 code
- Python selenium —— 将你的自动化脚本打包成一个exe
- python实现zabbix发送短信脚本
- 将Python脚本转为exe执行文件
- 基于Python的网页文档处理脚本实现
- python脚本实现源码安装python2/3
- 用 Python 脚本实现对 Linux 服务器的监控
- Python 实现ip去重与排序脚本
- [置顶] ubuntu 16.04 C++ 调用python脚本实现方式
- 使用 python 实现 memcached 的启动服务脚本 rc
- python实现多线程post方法进行压测脚本模板
- Python脚本打包成exe
- Python实现的简单发送邮件脚本分享
- Python脚本实现自动发布地图服务
- 利用Opencv实现微信跳一跳脚本源码放送(C++实现嵌套python)
- Python实现利用163邮箱远程关电脑脚本
- nginx日志切割脚本,python实现