摘要:
遇到 No module named BeautifulSoup 错误,但是的确从官方下载了BeautifulSoup,并安装成功。后来才发现,有两个BeautifulSoup的版本,一个是2012年停止维护的BeautifulSoup3,还有个是新起的BeautifulSoup4.BeautifulSoup3 是from BeautifulSoup import BeautifulSoup而BeautifulSoup4 中的语句是 from bs4 import BeautifulSoup但所引用的库代码依赖的为BeautifulSoup3,而非安装的BeautifulSoup4。安装好Be 阅读全文