[问题] python 3.5 beautifulsoup('lxml')疑问

楼主: geneknight (宝包)   2016-09-23 18:16:10
最近学习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解决问题
我都已经安装过,但还是会跳出上述的错误
有高手能帮我解惑吗,谢谢!
作者: BigBank ( )   2016-09-23 22:24:00
应该是lxml没装成功 找找其他教学重安装试试看
作者: yf9000555 (所以我说那个妈妈如何)   2016-09-24 01:28:00
用pip uninstall lxml 来解除安装看看
楼主: geneknight (宝包)   2016-09-24 12:06:00
感谢大大们回答,但重新安装后还是一样@@
作者: kenduest (小州)   2016-09-25 12:59:00
你的python怎么安装的,是用什么整合包还是...
作者: alibuda174 (阿哩不达)   2016-09-25 13:47:00
有安装lxml吗?
作者: sonicnaru (披者狼皮的羊)   2016-09-26 15:13:00
http://jupyter.org/ 我用这个ide 颇好用的..
楼主: geneknight (宝包)   2016-09-27 23:08:00
已解决,改成lxml 32的whl,并装在script资料夹

Links booklink

Contact Us: admin [ a t ] ucptt.com