Skip to content

How to correctly build application with library pypinyin #8727

Closed Answered by BJladika
BJladika asked this question in Help
Discussion options

You must be logged in to vote

Okay after long search, using collect_data_files solved my issue.

Just add this to the spec file or add command --collect-data to pyinstaller command

from PyInstaller.utils.hooks import collect_data_files

datas = []
datas += collect_data_files('pypinyin')

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BJladika
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant