标签:
1.PyInstaller-3.1.1 百度云链接 http://pan.baidu.com/s/1jHYWin8 密码 oapl
2.安装最新版本的 pywin32-217.win32-py2.7.exe 链接http://download.csdn.net/detail/gfsfg8545/6539111
先安装完pywin,然后将pyinstaller解压(随便你解压到哪里)
然后 切换到这个盘,打开文件运行pyinstaller.py (注意要设置Python环境变量)
我么可以看到关于pyinstaller.py的usage
G:\>cd PyInstaller-3.1.1 G:\PyInstaller-3.1.1>python pyinstaller.py usage: pyinstaller.py [-h] [-v] [-D] [-F] [--specpath DIR] [-n NAME] [-p DIR] [--hidden-import MODULENAME] [--additional-hooks-dir HOOKSPATH] [--runtime-hook RUNTIME_HOOKS] [--exclude-module EXCLUDES] [--key KEY] [-d] [-s]1 [--noupx] [-c] [-w] [-i <FILE.ico or FILE.exe,ID or FILE.icns>] [--version-file FILE] [-m <FILE or XML>] [-r RESOURCE] [--uac-admin] [--uac-uiaccess] [--win-private-assemblies] [--win-no-prefer-redirects] [--osx-bundle-identifier BUNDLE_IDENTIFIER] [--distpath DIR] [--workpath WORKPATH] [-y] [--upx-dir UPX_DIR] [-a] [--clean] [--log-level LEVEL] [--upx UPX] scriptname [scriptname ...] pyinstaller.py: error: too few arguments
演示打包exe
将你要打包的脚本放到pyinstaller-3.1.1这个目录 然后运行命令
1 G:\PyInstaller-3.1.1>python pyinstaller.py --console --onefile + 你自己的py文件 2 最后会生成一个文件夹来保存你的exe(看最后完成的提示给你的目录)
标签:
原文地址:http://www.cnblogs.com/loid/p/5407139.html