add*_*ons 1 python scrapy osx-lion
我使用家酿和安装python与$ brew install python --framework
然后我安装easy_install安装点,
之后,如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
Run Code Online (Sandbox Code Playgroud)
您可能没有安装xcode命令行工具.如果您运行:
xcode-select --install
Run Code Online (Sandbox Code Playgroud)
从命令行xcode应该提示你安装它们,然后再试一次.