ABD eyaletlerini wiki URL'sinden almayı ve Python Panda'ları kullanıyorum.Pandalar: read_html
import pandas as pd
import html5lib
f_states = pd.read_html('https://simple.wikipedia.org/wiki/List_of_U.S._states')
Ancak, yukarıda kod bana ben de html5lib ve beautifulsoup4 yüklü
ImportError Traceback (most recent call last) in() 1 import pandas as pd ----> 2 f_states = pd.read_html(' https://simple.wikipedia.org/wiki/List_of_U.S._states ')
if flavor in ('bs4', 'html5lib'): 662 if not _HAS_HTML5LIB: --> 663 raise ImportError("html5lib not found, please install it") 664 if not _HAS_BS4: 665 raise ImportError("BeautifulSoup4 (bs4) not found, please install it") ImportError: html5lib not found, please install it
bir hata L veriyor, ancak çalışmıyor. Birisi pls yardımcı olabilir.
pip install pandas
pip install lxml
pip install html5lib
pip install BeautifulSoup4
Sonra örnek koştu pyvenv
Yeni bir mac Python 3.4 Running
teşekkürler, bu işe yaradı. Her ne kadar hepsini yükledim, ancak yeniden yükledim ve yeni bir örnek açtım ve işe yaradı. – user4943236
teşekkürler –
0tBurada aynı şey @TimSeed, pip kullanarak her şeyi yükledim, sonra yeni bir örneğini yeniden başlatmak zorunda kaldı. –