Py2exe缺少lxml解析器

时间:2015-05-26 09:21:04

标签: python beautifulsoup exe py2exe

我试图从我的Python项目中创建一个exe文件。问题是,当我运行exe文件时,它会引发错误。这是日志文件的内容。

Traceback (most recent call last):
  File "gui.py", line 21, in <module>
  File "gui.py", line 12, in __init__
  File "Body.pyc", line 13, in __init__
  File "Connection.pyc", line 31, in get_auth_with_session
  File "milBin.pyc", line 26, in getSoup
  File "bs4\__init__.pyc", line 152, in __init__
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

milBin是导入的库,我已导入from bs4 import BeautifulSoup。 我已经尝试将&#34; bs4&#34;放入选项 - &gt; py2exe-&gt;包括但没有任何改变。

你有什么想法吗?

0 个答案:

没有答案