Python: ImportError: lxml not found, please install it

后端 未结 3 1361
温柔的废话
温柔的废话 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 20:00

    Based on the fact that the error is:

    /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6

    This means that you are working with python-3.6. Now usually the package manager for python-3.x is pip3. So you probably should install it with:

    pip3 install lxml

提交回复
热议问题