我正在尝试使用beautifulsoup
compatible 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
安装了。我该如何解决这个问题?