SystemError: Cannot locate working compiler

Writing /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/greenlet-0.4.5/setup.cfg
Running setup.py -q bdist_egg --dist-dir /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/greenlet-0.4.5/egg-dist-tmp-DkRe6u
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/easy_install", line 9, in <module>
    load_entry_point('setuptools==6.1', 'console_scripts', 'easy_install')()
  File "build/bdist.macosx-10.6-intel/egg/setuptools/command/easy_install.py", line 2147, in main
  File "build/bdist.macosx-10.6-intel/egg/setuptools/command/easy_install.py", line 2133, in with_ei_usage
  File "build/bdist.macosx-10.6-intel/egg/setuptools/command/easy_install.py", line 2150, in <lambda>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.macosx-10.6-intel/egg/setuptools/command/easy_install.py", line 370, in run
  File "build/bdist.macosx-10.6-intel/egg/setuptools/command/easy_install.py", line 594, in easy_install
  File "build/bdist.macosx-10.6-intel/egg/setuptools/command/easy_install.py", line 643, in install_item
  File "build/bdist.macosx-10.6-intel/egg/setuptools/command/easy_install.py", line 833, in install_eggs
  File "build/bdist.macosx-10.6-intel/egg/setuptools/command/easy_install.py", line 1055, in build_and_install
  File "build/bdist.macosx-10.6-intel/egg/setuptools/command/easy_install.py", line 1040, in run_setup
  File "build/bdist.macosx-10.6-intel/egg/setuptools/sandbox.py", line 68, in run_setup
  File "build/bdist.macosx-10.6-intel/egg/setuptools/sandbox.py", line 114, in run
  File "build/bdist.macosx-10.6-intel/egg/setuptools/sandbox.py", line 67, in runner
  File "build/bdist.macosx-10.6-intel/egg/setuptools/sandbox.py", line 43, in _execfile
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/greenlet-0.4.5/setup.py", line 99, in <module>
    **setuptools_args)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.macosx-10.6-intel/egg/setuptools/command/bdist_egg.py", line 161, in run
  File "build/bdist.macosx-10.6-intel/egg/setuptools/command/bdist_egg.py", line 147, in call_command
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.macosx-10.6-intel/egg/setuptools/command/install_lib.py", line 10, in run
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install_lib.py", line 111, in build
    self.run_command('build_ext')
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build_ext.py", line 307, in run
    customize_compiler(self.compiler)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/sysconfig.py", line 170, in customize_compiler
    _osx_support.customize_compiler(_config_vars)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_osx_support.py", line 418, in customize_compiler
    _find_appropriate_compiler(_config_vars)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_osx_support.py", line 191, in _find_appropriate_compiler
    "Cannot locate working compiler")
SystemError: Cannot locate working compiler


原因:电脑没有安装gcc

gcc 是c 语言的编译器, 有一部分代码实现是c 做的,要用gcc 编译

你可能感兴趣的:(compiler)