在Mac OSX 10.9.2上安装Scrapy时出错

时间:2014-05-09 02:53:25

标签: python scrapy pip portia

每当我尝试为scrapy支持的python项目安装所需的软件包时,我都会收到以下错误。

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

error: command 'cc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-hqp6xc-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/lxml
Storing debug log for failure in /Users/MichaelBoydBrowne/Library/Logs/pip.log

我尝试使用sudo进行安装,但是没有用。让我知道可能出现的问题。如果有任何帮助,我一直在从其他基于python的安装中得到类似的错误,我试图解决这个问题。

1 个答案:

答案 0 :(得分:2)

您可能没有xcode命令行工具。尝试运行此命令:

xcode-select --install