when I activate virtualenv and type 'pip install lxml' installation process crashes with message:
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Installing those dependencies fixed it for me (Debian 7):
sudo apt-get install libxml2-dev libxslt1-dev
source: src/lxml/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory
From https://askubuntu.com/questions/627140/cannot-install-lxml-on-ubuntu-14
sudo apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev python3-pip
libxml2 libxml2-devel libxslt libxslt-devel