用Pyinstaller 打包程序时出现错误:
Building PYZ because PYZ-00.toc is non existent
....
TypeError: an integer is required (got type bytes).
出现该问题的原因是python 3.8 与 pyinstaller 3.5 不兼容。
直接安装最新开发版
pip instal https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
解决了该问题。