首页 > 代码库 > 【python】坑,坑,折腾一个下午python 3.5中 ImportError: No module named BeautifulSoup

【python】坑,坑,折腾一个下午python 3.5中 ImportError: No module named BeautifulSoup

 

将语句 from bs4 import BeautifulSoup4

改成 from bs4 import BeautifulSoup

通过

尼玛………………………………………………………………!

 

总结一下:

python 2.7.9调用

from BeautifulSoup import BeautifulSoup


python 3.5 调用

from bs4 import BeautifulSoup

 

【python】坑,坑,折腾一个下午python 3.5中 ImportError: No module named BeautifulSoup