
error: 'libxml/xmlversion.h' file not found #include "libxml/xmlversion.h"
brew install libxml2 libxslt
STATIC_DEPS=true sudo pip install lxml
1 Melodic Feb 19, 2015 xcode-select --install 升级一下命令行先? |
2 chinvo Feb 20, 2015 $ brew doctor |
3 autosquid Oct 28, 2015 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 ``` |