pyinstaller打包py文件为exe的报错

打包为exe后,运行出现报错
Exception in Tkinter callback
Traceback (most recent call last):
___ File "Tkinter.pyc", line 1532, in __call
__
File "zhaopin.py", line 153, in reg
File "zhaopin.py", line 39, in GetPath
File "zhaopin.py", line 44, in GetIfo
File "bs4__init__.pyc", line 152, in init
FeatureNotFound: Couldn't find a tree builder with the features you requested: l
xml. Do you need to install a parser library?
但是我在pycharm中运行正常,且lxml已经安装了,这是为什么呢

1个回答

把你打包的命令发一下,打包的时候应该是需要添加一些系统模块或者引入模块。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问