運(yùn)行時(shí)報(bào)錯(cuò) ImportError: cannot import name 'HTMLParseError'
Traceback (most recent call last):
? File "D:/Python Workspaces/web_crawer/test_urlib2.py", line 4, in <module>
? ? from bs4 import BeautifulSoup
? File "C:\Users\YSong\AppData\Local\Programs\Python\Python35-32\lib\site-packages\bs4\__init__.py", line 29, in <module>
? ? from .builder import builder_registry
? File "C:\Users\YSong\AppData\Local\Programs\Python\Python35-32\lib\site-packages\bs4\builder\__init__.py", line 294, in <module>
? ? from . import _htmlparser
? File "C:\Users\YSong\AppData\Local\Programs\Python\Python35-32\lib\site-packages\bs4\builder\_htmlparser.py", line 7, in <module>
? ? from html.parser import (
ImportError: cannot import name 'HTMLParseError'
求指導(dǎo)
2016-04-29
看看這個(gè)Importing bs4 in Python 3.5