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