- 在目录
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')
2024-02-22 21:35:10
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')