pyInstaller
来源:互联网 发布:最新版学越南语软件 编辑:程序博客网 时间:2024/05/15 03:24
1.下载PyInstaller 。地址http://www.pyinstaller.org/
2.解压 ,将需要打包的py程序放到pyinstaller目录下
3.pyinstaller依赖一些windows的组件,需要到http://sourceforge.net/projects/pywin32/ 下载相应python的版本,
例如:python2.7的32位版:pywin32-218.win32-py2.7.exe
放到pyinstaller目录下
4.测试pyinstall安装是否正确
进入pyinstaller目录,试运行看看是否安装正确。
以下是运行屏幕:
C:\>cd c:\pyinstaller
C:\pyinstaller>c:\python27\python pyinstaller.py
Error: PyInstaller for Python 2.6+ on Windows needs pywin32.
Please install from http://sourceforge.net/projects/pywin32/
#上面的错误提示安装pywin32-218.win32-py2.7.exe。
C:\pyinstaller>c:\python27\python pyinstaller.py
Usage: python pyinstaller.py [opts] <scriptname> [ <scriptname> ...] | <specfile>
pyinstaller.py: error: Requires at least one scriptname file or exactly one .spec-file
# 以上信息表示可以开展工作了。
5.开始打包
C:\pyinstaller>c:\python27\python pyinstaller.py --console --onefile convert.py
....
会生成convert目录,在build下生成convert.exe
提示:
如果出现Error loading Python DLL: E:\download\PYINST~1.1\CONVER~1\build\CONVER~1\python2
7.dll (error code 126)错误
搜索系统中的python27.dll,放到convert.exe目录下或者window
- pyinstaller
- Pyinstaller
- pyInstaller
- pyinstaller手册
- pyinstaller使用
- pyinstaller 杂记
- pyinstaller打包
- PyInstaller打包
- pyinstaller使用
- PyInstaller安装
- PyInstaller Quickstart
- Pyinstaller打包
- Pyinstaller Pmw
- Pyinstaller使用
- pyinstaller+scipy
- PyInstaller用法
- pyinstaller学习笔记
- Pyinstaller是个好东西
- 关于wampserver 局域网访问问题
- iOS SVN的使用
- SGU 520 Fire in the Country 博弈SG函数(或者YY一下)
- vim常用快捷键
- 多线程安全
- pyInstaller
- SVM模型预测
- TCP/IP详解--TCP/IP可靠的原理 滑动窗口 拥塞窗口
- poj2299 Ultra-QuickSort&&NYOJ117 求逆序数 (树状数组求逆序对数+离散化)+(归并排序)
- Longest Substring Without Repeating Characters
- R相关分析
- 求子数组之和的最大值——编程之美 2.14 扩展问题 正确实现
- 晶体一秒变晶振,成本直降60%!
- Linux命令笔记