|
|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
soup = bs4.BeautifulSoup(html, features='lxml')
Traceback (most recent call last):
File "<pyshell#33>", line 1, in <module>
soup = bs4.BeautifulSoup(html, features='lxml')
File "E:\Python\Lib\site-packages\bs4\__init__.py", line 250, in __init__
raise FeatureNotFound(
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
E:\>pip show lxml
Name: lxml
Version: 4.9.3
Summary: Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
Home-page: https://lxml.de/
Author: lxml dev team
Author-email: lxml-dev@lxml.de
License: BSD-3-Clause
Location: E:\Python\Lib\site-packages
Requires:
Required-by:
lxml库也安装了,为什么还是用不了 |
|