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\')
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
pip3 install lxml