Errors when installing the Python ‘lxml’ library using pip on Ubuntu
August 28, 2011 Comments
I thought I’d post this here, this is the second time I ran into this issue on Ubuntu and forgot what I did the first time.
If you get errors about things missing when you do ‘sudo pip install lxml’ on Ubuntu, you’ll probably need to install the following development packages (source):
- sudo apt-get install python-dev
- sudo apt-get install libxml2-dev
- sudo apt-get install libxslt1-dev
You may also want to do ‘sudo pip install lxml –upgrade’ if pip tells you that it’s already installed but you know it wasn’t properly installed.