1.检查代码问题
soup =BeautifulSoup(html,"html.parser")
2.先用pip uninstall lxml卸载,再用pip install lxml安装,
3.先用pip3 uninstall lxml卸载,再用pip3 install lxml安装
- 2或3,查看报错问题
1.检查代码问题
soup =BeautifulSoup(html,"html.parser")
2.先用pip uninstall lxml卸载,再用pip install lxml安装,
3.先用pip3 uninstall lxml卸载,再用pip3 install lxml安装