If you have virtualenv configured with --no-site-packages
,
You, probably, will see folowing error during lxml
installation:
$ pip install lxml
...
ERROR: /bin/sh: 1: xslt-config: not found
src/lxml/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory
error: command 'gcc' failed with exit status 1
To install lxml within virtualenv in Ubuntu/Mint 12.04 you should perform commands:
$ sudo apt-get install libxml2 libxml2-dev libxslt-dev build-essential python-dev
$ sudo ldconfig
$ pip install lxml