Error:command ' CC ' failed with exit status 1

Source: Internet
Author: User

Error:

  

Complete output from command/usr/bin/python-u-C"import setuptools, tokenize;__file__= '/private/tmp/pip-build-ksfbfz/ujson/setup.py '; f=getattr (tokenize, ' open ', open) (__file__); Code=f.read (). replace (' \ r \ n ', ' \ n '); F.close (); Exec (compile (code, __file__, ' exec '))" Install--record/tmp/pip-wjwhzh-record/Install-record.txt--single-version-externally-managed--compile:runningInstallrunning build running Build_ext building'Ujson'extension Creating build creating Build/temp.macosx-10.12-intel-2.7Creating Build/temp.macosx-10.12-intel-2.7/python Creating Build/temp.macosx-10.12-intel-2.7/Libcc-fno-strict-aliasing-fno-common-dynamic-arch I386-arch x86_64-g-os-pipe-fno-common-fno-strict-aliasing-fwrapv-d enable_dtrace-dmacosx-dndebug-wall-wstrict-prototypes-wshorten- --to- +-dndebug-g-fwrapv-os-wall-wstrict-prototypes-denable_dtrace-arch I386-arch X86_64-pipe-i./python-i./lib-i/syst em/library/frameworks/python.framework/versions/2.7/include/python2.7-C./python/ujson.c-o build/temp.macosx-10.12-intel-2.7/./PYTHON/UJSON.O-D_gnu_source Xcode-Select: Note:no developer tools were found at'/applications/xcode.app', requestingInstall. Choose an optioninchTheDialogTo download, the command line developer tools. Error:command'cc'Failed with exit status1----------------------------------------Command"/usr/bin/python-u-C"Import Setuptools, tokenize;__file__='/private/tmp/pip-build-ksfbfz/ujson/setup.py'; F=getattr (Tokenize,'Open', open) (__file__); Code=f.read (). Replace ('\ r \ n','\ n'); F.close (); Exec (compile (code, __FILE__,'exec'))"Install--record/tmp/pip-wjwhzh-record/install-record.txt--single-version-externally-managed--compile"Failed with error code1 inch/private/tmp/pip-build-ksfbfz/ujson/

Create the. Bash_profile

https://www.v2ex.com/t/129563

Edit

Http://stackoverflow.com/questions/21638444/error-command-cc-failed-with-exit-status-1-mysqldb-installation-on-mac

export CC=‘/usr/bin/gcc‘export CFLAGS=‘-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I/opt/X11/include -arch i386 -arch x86_64‘export LDFLAGS=‘-arch i386 -arch x86_64‘export ARCHFLAGS=‘-arch i386 -arch x86_64‘

Error:command ' CC ' failed with exit status 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.