2016-04-14 146 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嗎?我覺得我正在倒退。任何線索或方向將非常感激。謝謝。 –