macos – Python: ImportError: lxml not found, please install it

macos – Python: ImportError: lxml not found, please install it

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 . Now usually the package manager for is pip3. So you probably should install it with:

pip3 install lxml

For people reached here using Jupyter notebook, I restarted the kernel after pip install lxml and the error is gone.

macos – Python: ImportError: lxml not found, please install it

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.

Leave a Reply

Your email address will not be published. Required fields are marked *