BeautifulSoup库报错:bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested

根本原因在于

lxml解析器虽然效率高,但是需要C语言库的支持
lxml库需要到该网站下载:https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

cp后面为Python的版本号
可以在命令号通过

python -V

查看版本号
接下来安装wheel

pip install wheel

最后pip install 刚才下载的文件即可

猜你喜欢

转载自blog.csdn.net/C_Ronaldo_/article/details/82156465