w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
'No module named libxml2' error in python on Ubuntu Server 14.04 with python version 2.7.6

The packages you've install do not include the Python bindings to libxml2. You've installed the shared object library as stated in the comments, but this is not available to Python programs without a Python module.

Installing python-dev libxml2 libxml2-dev libxslt-dev sounds like you're about to build the Python module from source, so see if the instructions you're following include other steps.

I believe this is the page for the module you need http://xmlsoft.org/python.html. See this SO answer for instructions on how to install it on OS-X that mostly apply to Linux also http://stackoverflow.com/a/9797504/66349

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.