pkuseg-python
pkuseg-python copied to clipboard
打包缺少文件情况 FileNotFoundError: \\cache\\_MEI183882\\pkuseg\\dicts\\default.pkl'
使用 pyinstaller打包为可执行的exe文件,在执行exe文件时会报错。 FileNotFoundError: [Errno 2] No such file or directory: 'F:\cache\_MEI183882\pkuseg\dicts\default.pkl' 请问这是什么原因导致的呢 环境版本: pyinstaller:4.9 python:3.8.8 pkuseg:0.0.25
@.***,本次回复为系统自动回复!
非.py后缀的数据文件都是要在命令行或者spec文件里手动指定的 参考:https://pyinstaller.readthedocs.io/en/stable/spec-files.html#adding-data-files 或者我的spec文件