pyinstaller打包一些三方库后,报资源不存在

  • 在目录site-packages\PyInstaller\hooks下新建对应文件hook-对应三方库名字.py,如hook-ngender.py
  • 编辑hook-ngender.py:
from PyInstaller.utils.hooks import collect_data_files

datas = collect_data_files('ngender')
posted @ 2020-07-02 17:30  秒年度  阅读(408)  评论(0编辑  收藏  举报