pyinstaller3.6 封装python3.7的代码出错

pyinstaller3.6 封装python3.7的代码出错

封装没有问题

运行就出错

心态崩了

EXE运行结果如下:

Traceback (most recent call last):
  File "site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py", line 13, in <module>
  File "d:\python\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\pkg_resources\__init__.py", line 86, in <module>
ModuleNotFoundError: No module named 'pkg_resources.py2_warn'
[388] Failed to execute script pyi_rth_pkgres

有大佬可以帮忙解决一下吗?

如果是有素材项目的话,就检查有没有把图片或音乐等资源和exe放在同一个文件夹中。