事象
記事投稿時点(2019/11/27)だとPyInstallerをPython3.8で実行すると、以下のエラーが発生する
TypeError: an integer is required (got type bytes)
エラーの理由
現在(2019/11/27)の安定板であるPyInstaller3.5が、Python3.8に対応していないため。
対応策
Development版をダウンロードする。
pipでインストールするなら以下の通り。
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz