简体   繁体   中英

Error Installing Scrapy on Mac OSX 10.9.2

I've been getting the following error whenever I try to install the required packages for a scrapy-backed python project.

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

I've tried installing using sudo and that hasn't worked. Let me know what could be wrong. If it's any help I've been getting similar errors from other python-based installations I've tried to do to remedy the problem.

You may not have your xcode command line tools. Try running this command:

xcode-select --install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM