Prerequisites: Install Python and set up virtual environment & Install pip in virtual environment
Tested on: Xubuntu 12.04 LTS / 13.10 / 14.04 LTS (64-bit) with ActivePython installed in /opt
[Last update: 03/07/2014]
- (skip, if activated) Activate the virtual environment you would like to install lxml in:
-
cd ~/venv/apy3341 source bin/activate
- Install/check for lxml dependencies (for pip to be able to compile lxml from source code):
-
sudo apt-get install libxml2-dev libxslt1-dev zlib1g zlib1g-dev
- Use pip to install/update lxml:
-
bin/pip install -U lxml