A brief solution to solve this problem

While I built up the develope environment for Pelican on my Mac OSX 10.9,
I encounterd this problem below:

In file included from src/lxml/lxml.etree.c:239:  

    /private/var/folders/v2/td9_yf3x7lv6myk_9cy1_h640000gn/T/pip-build-UkRKm0/lxml/src/lxml/includes/e  
tree_defs.h:14:10: fatal error: 'libxml/xmlversion.h' file not found  

    #include "libxml/xmlversion.h"  

Solution

$ brew install libxml2  
$ brew link libxml2 --force  
$ export C_INCLUDE_PATH=/usr/local/Cellar/libxml2/2.9.2/include/libxml2:$C_INCLUDE_PATH  

Reference


Share


Donation

如果覺得這篇文章對你有幫助, 除了留言讓我知道外, 或許也可以考慮請我喝杯咖啡, 不論金額多寡我都會非常感激且能鼓勵我繼續寫出對你有幫助的文章。

If this blog post happens to be helpful to you, besides of leaving a reply, you may consider buy me a cup of coffee to support me. It would help me write more articles helpful to you in the future and I would really appreciate it.


Related Posts