我在学习python爬虫,使用的是python3.6,然后要使用beautifulsoup,使用的安装方法是命令行:pip install beautifulsoup4,安装也成功了,但是在加载时,老出错:
from bs4 import BeautifulSoup输入这句后出现:
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
from bs4 import BeautifulSoup
File "C:\Users\Larry Qiu\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bs4\__init__.py", line 35, in <module>
from .builder import builder_registry, ParserRejectedMarkup
File "C:\Users\Larry Qiu\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bs4\builder\__init__.py", line 7, in <module>
from bs4.element import (
ImportError: cannot import name 'HTMLAwareEntitySubstitution'
我在网上找了好多方法,都不能解决,这是怎么回事啊,求大神解答
from bs4 import BeautifulSoup输入这句后出现:
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
from bs4 import BeautifulSoup
File "C:\Users\Larry Qiu\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bs4\__init__.py", line 35, in <module>
from .builder import builder_registry, ParserRejectedMarkup
File "C:\Users\Larry Qiu\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bs4\builder\__init__.py", line 7, in <module>
from bs4.element import (
ImportError: cannot import name 'HTMLAwareEntitySubstitution'
我在网上找了好多方法,都不能解决,这是怎么回事啊,求大神解答