compile lxml on Ubuntu 16.04
lxml doesn’t want to compile on Ubuntu 16.04.
$ sudo apt install libxml2-dev libxslt1-dev python-dev zlib1g-dev
I was getting the error “
/usr/bin/ld: cannot find -lz“. It turned out that the package
zlib1g-dev was the cure…
Note that this is for Python 2. For Python 3 you might need to install the package