1.pyinstaller-3.1.1 Baidu Cloud link http://pan.baidu.com/s/1jHYWin8 Password OAPL
2. Install the latest version of the Pywin32-217.win32-py2.7.exe link http://download.csdn.net/detail/gfsfg8545/6539111
Install Pywin First, then unzip the Pyinstaller (wherever you want to extract it)
Then switch to this disk and open the file to run pyinstaller.py (note to set the Python environment variable)
I can see the usage of pyinstaller.py.
G:\>CD PyInstaller-3.1.1G:\PyInstaller-3.1.1>python pyinstaller.pyusage:pyinstaller.py [-h] [-v] [-d] [-f] [--specpath DIR] [-N NAME] [-P DIR] [--hidden-ImportModuleName] [--additional-hooks-dir Hookspath] [--runtime-Hook Runtime_hooks] [--exclude-module excludes] [--key key] [-d] [-s]1 [--NOUPX] [-c] [-W] [-I. <file.icoorFile.exe,idorFile.icns>] [--version-file file] [-M <fileorXml>] [-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
Demo Pack exe
Put the script you want to pack into the pyinstaller-3.1.1 directory and run the command
1 g:\pyinstaller-3.1.1>python pyinstaller.py--console--onefile + your own py file 2 Finally, a folder will be generated to save your EXE (see the last completed hints to your directory)
Pyinstaller package python script as exe