我导入包时beutifulsoup python错误

时间:2016-04-27 23:26:41

标签: python beautifulsoup

当我尝试导入beautifulsoup时,我得到以下错误。我正在使用enthough canopy,包管理器告诉我,安装了beautifulsoup4 4.4.1-3。发生了什么,我该怎么办呢?

----> 6 from BeautifulSoup import BeautifulSoup
      7 
      8 #This is the url that will be queried. You can change this to something else

ImportError: No module named BeautifulSoup

1 个答案:

答案 0 :(得分:2)

应该是:

from bs4 import BeautifulSoup

请参阅documentation