Pyinstaller打包报错Failed to execute script pyi_rth_pkgres

Pyinstaller打包项目文件的时候出现报错failed to execute script pyi_rth_pkgres解决方案