【发布时间】:2012-12-12 02:18:45
【问题描述】:
我正在尝试使用beautifulsoup 兼容lxml,但它给了我一个错误:
from lxml.html.soupparser import fromstring
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/lxml/html/soupparser.py", line 7, in <module>
from BeautifulSoup import \
ImportError: No module named BeautifulSoup
我安装了bs4。我该如何解决这个问题?
【问题讨论】:
-
看看这个question
标签: python beautifulsoup lxml bs4