pyinstaller打包jieba时报错

  1. 调用python2报错

pyinstaller打包jieba时报错
这是产生报错的文件(init.py),将文件中的第86行注释掉,因为其调用了python2的包,现在Python3不支持,所以没有意义。
C:\Users\Administrator\anaconda3\Lib\site-packages\pkg_resources
这是我的电脑路径,一般在site_packages(第三方库路径)下。
pyinstaller打包jieba时报错

  1. hook-jieba.py不存在报错

pyinstaller打包jieba时报错
pyinstaller库没有字典jieba的打包相关配置文件,需要自己写入,不然再cmd运行的时候会报错。

链接:https://pan.baidu.com/s/1IAPDspoTUNCvdAq8otyGyg
提取码:gkng
资源链接我放在这里了。