需要更换使用的pytinstaller版本:

pip3  install pyinstaller==4.1