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

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:

n

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

n

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

n

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.

Related posts on Python :

Leave a Reply

Your email address will not be published.