Reputation: 513
I am trying to install this library on Mac OSx 10.11 using this command:
sudo -H pip install lxml
While I keep getting this message:
#include "libxml/xpath.h"
^
1 error generated.
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Perhaps try: xcode-select --install
*********************************************************************************
error: command 'cc' failed with exit status 1
Yet I am pretty sure that libxml2 is installed here:
/usr/local/Cellar/libxml2/2.9.2/include/libxml2
I used brew to install this package. There shouldn't be any problem. How should I fix it?
Upvotes: 1
Views: 1444