You can't just copy the Windows version over to a Linux server; lxml
uses C extensions which need to be compiled for the target platform.
The etree
module is such a compiled extension, on Linux that'd be etree.so
, while on Windows it would be a etree.dll
file instead, for example.
For Ubuntu, look for python-lxml
, or install the dependencies libxml2-dev
, libxslt1-dev
and python-dev
, plus python-pip
, then use sudo pip install lxml
to install lxml
on your server.