I did a cryptographic decryption of the small software, want to package into EXE files. Search on the internet found Pyinstaller use simple points.
Keep a record of yourself having problems here
Use Python version 3.6 to install directly with PIP
Pip Install Pyinstaller
The installation process was smooth and the installation was 3.2.1 version
Use looks also very simple, pyinstaller-f example.py generate a single EXE file, specific other commands for the time being not detailed, online there are many great God's summary
However, the error during execution:
Indexerror:tuple index out of range
At first I thought I had a problem with writing, but Python example.py does not have a problem, it should be pyinstaller and python incompatible, found the answer in a great God.
Rtfm:pyinstaller 3.2.1 does not support Python 3.6
The latest version does not support Python 3.6, feel the despair, why I want to use Python 3.6 ...
Fortunately another great God pointed out the maze.
The latest version on GitHub has been supported, but it hasn't been released yet. In his way, the final implementation of the generated EXE file
Download: Https://github.com/pyinstaller/pyinstaller Zip package, find the Pyinstaller folder, replace the/python/lib/site-packages/pyinstaller is resolved.
This article is from the "Amnesiasun" blog, make sure to keep this source http://amnesiasun.blog.51cto.com/10965283/1935106
Python 3.6 problems with using Pyinstaller to package EXE files