运行pyinstaller打包python文件生成的exe文件报错:TypeError:expected str, bytes or os.PathLike object, not BytesIO

初学python,想尝试使用pyinstaller进行打包,但打包之后生成的exe一直无法运行。
首先在命令提示符窗口输入命令:
pyinstaller -F (多个文件)
回车后完成打包,在命令提示符运行exe文件有如下报错:
TypeError:expected str, bytes or os.PathLike object, not BytesIO
之后又尝试过打包一个单文件,结果可以正常运行。
求各位dl指点QAQ

楼主解决了吗????

我也遇到了这个问题,希望有大佬ti。

翻译一下:期望的str, bytes或os.PathLike对象,而不是BytesIO