作者geneknight (宝包)
看板Python
标题[问题] python 3.5 beautifulsoup('lxml')疑问
时间Fri Sep 23 18:16:10 2016
最近学习BeautifulSoup的功能
虽然用内建的html.parser去爬虫多数可以成功.
但如果用 soup = BeautifulSoup(html, "lxml")指令
都会跳出 bs4.feature not found , couldn't find a tree builder with the features
you requested : lxml . Do you need to install a parser library?
我的电脑是windows7 ,python是3.5版的
网路上的教学不外乎是藉安装lxml 或是 visual studio解决问题
我都已经安装过,但还是会跳出上述的错误
有高手能帮我解惑吗,谢谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 27.242.135.213
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1474625772.A.8A8.html
1F:→ BigBank: 应该是lxml没装成功 找找其他教学重安装试试看 09/23 22:24
2F:推 yf9000555: 用pip uninstall lxml 来解除安装看看 09/24 01:28
3F:→ geneknight: 感谢大大们回答,但重新安装後还是一样@@ 09/24 12:06
4F:推 kenduest: 你的python怎麽安装的,是用什麽整合包还是... 09/25 12:59
5F:→ alibuda174: 有安装lxml吗? 09/25 13:47
7F:→ geneknight: 已解决,改成lxml 32的whl,并装在script资料夹 09/27 23:08