我使用 home brew 安装 python$ brew install python --framework
然后我安装easy_install
安装 pip,
之后,正如 Scrapy 网站所说,我使用 pip install 来安装 Scrapy,但看起来 XCode 缺少一些 libxml 文件。
In file included from src/lxml/lxml.etree.c:314:
/private/var/folders/h6/xl6c12wn67n_9j7jl60b_j843908_z/T/pip-build-auduwage/lxml/src/lxml/includes/etree_defs.h:9:10: fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
^
1 error generated.
error: command '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' failed with exit status 1