error: 'libxml/xmlversion.h' file not found #include "libxml/xmlversion.h"
brew install libxml2 libxslt
STATIC_DEPS=true sudo pip install lxml
|  |      1Melodic      2015-02-19 23:50:10 +08:00 xcode-select --install 升级一下命令行先? | 
|  |      2chinvo      2015-02-20 00:58:52 +08:00 $ brew doctor | 
|  |      3autosquid      2015-10-28 09:52:08 +08:00 lxm 自身安装包的问题。 workaround 是把 Libxml2 的路径手工指定。 ``` CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 CFLAGS=-Qunused-arguments CPPFLAGS=-Qunused-arguments pip install lxml ``` |