html - Python Pandas No Module Named Webencodings -


i'm trying load data web page (link) using pandas read_html function. when try this:

import pandas pd  url = 'https://en.wikipedia.org/wiki/list_of_countries_by_gdp_%28nominal%29' md = pd.read_html(url) 

i got error:

traceback (most recent call last):   file "<ipython-input-14-1dee4ebbc8f2>", line 1, in <module>   md = pd.read_html(url)   file "c:\anaconda3\lib\site-packages\pandas\io\html.py", line 866, in read_html   parse_dates, tupleize_cols, thousands, attrs, encoding)   file "c:\anaconda3\lib\site-packages\pandas\io\html.py", line 718, in _parse   parser = _parser_dispatch(flav)   file "c:\anaconda3\lib\site-packages\pandas\io\html.py", line 663, in _parser_dispatch   raise importerror("html5lib not found, please install it")  importerror: html5lib not found, please install 

but supposedly have installed html5lib module shown in pic:

and here problem because when try load html5lib got error:

traceback (most recent call last):   file "<ipython-input-2-69f09277bafa>", line 1, in <module>   import html5lib   file "c:\anaconda3\lib\site-packages\html5lib-0.99999999.dev0-py3.5.egg\html5lib\__init__.py", line 16, in <module>   .html5parser import htmlparser, parse, parsefragment   file "c:\anaconda3\lib\site-packages\html5lib-0.99999999.dev0-py3.5.egg\html5lib\html5parser.py", line 6, in <module>   . import inputstream   file "c:\anaconda3\lib\site-packages\html5lib-0.99999999.dev0-py3.5.egg\html5lib\inputstream.py", line 9, in <module>   import webencodings  importerror: no module named 'webencodings' 

and i'm stuck because can't find way install module. has idea of wrong?

by way, i'm using python 3.5 , spyder ide.

try installing module using, pip install webencodings.


Comments