Python: ImportError: lxml not found, please install it

后端 未结 3 1337
温柔的废话
温柔的废话 2021-01-07 19:15

I have the following code (in PyCharm (MacOS)):

import pandas as pd

fiddy_states = pd.read_html(\'https://simple.wikipedia.org/wiki/List_of_U.S._states\')

         


        
3条回答
  •  情话喂你
    2021-01-07 19:56

    I got same error, it seems that my python3 was pointing to pandas in python2 (since I have not install pandas in python3). After doing pip3 install pandas and restarting a notebook, it worked fine.

提交回复
热议问题