Use pyinstaller package will TypeError with python3.6 more: an integer is required (got type bytes) abnormal, the solution is as follows:
1. Install pyinstaller
pip install PyInstaller
2. Package a single file
PyInstaller -F xxx.py
3. abnormal TypeError: an integer is requried (got type bytes)
The reason: pyinstaller version of the problem
Solution: command line, enter the following command to uninstall the previous version pyinstaller, update to the latest version
Tips: abnormal update pip: python -m pip install --upgrade pip
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
4. Re-execute packaging commands:
pyinstaller -F 123.py
Packaging Success!