2016-04-14 162 views
1

我对Python(以及一般编程)比较陌生,所以对我来说很简单。我一直在瞄准安装pyautogui模块,它是依赖于具有安装PyObjC:错误:安装PyObjC(Python 2.7)时,命令'gcc'失败,退出状态为1

pip install -U pyobjc-core        
pip install -U pyobjc 

我成功安装“pyobjc核心”。我也成功安装了'xcode-select --install'。当我尝试安装'pyobjc'时,出现以下错误:

3 errors generated. 
error: command 'gcc' failed with exit status 1 

我正在使用Python 2.7。请索取更多有用的信息。帮助我,提前谢谢。

+0

尝试安装Python的开发头文件 - > http://stackoverflow.com/questions/11094718/error-command-gcc-failed-with-exit-status-1-while-install-eventlet – LaPriWa

回答

0

呜呜......也许你的答案都可以在这里error: command 'gcc' failed with exit status 1 while installing eventlet

Your install is failing because you don't have the python development headers installed. You can do this through apt on ubuntu/debian with:

sudo apt-get install python-dev

好运,欢迎编程

+0

所以我试过了:'sudo apt-get install python-dev'它返回:'sudo:apt-get:command找不到'然后我尝试了'sudo apt-get install software-properties-common python-software-properties'来尝试安装software-properties-common软件包。这是Ubuntu的一部分,我也不知道。我之前没有提及我在使用Mac OS 10.11.4。我无法在Mac上下载Ubuntu,原因是没有可安装的文件系统。 Ubuntu仅适用于Linux吗?我觉得我正在倒退。任何线索或方向将非常感激。谢谢。 –

相关问题