首页 > 技术文章 > pyinstaller打包一些三方库后,报资源不存在

steinven 2020-07-02 17:30 原文

  • 在目录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')

推荐阅读