簡體   English   中英

無法在全新的Mac OS X Lion上安裝pythonbrew

[英]Trouble installing pythonbrew on a brand new mac os x lion

我安裝了pythonbrew,但是當我嘗試安裝python時,出現錯誤:

ERROR: Failed to install Python-3.2.1. See /Volumes/Documents/Users/nathan/.pythonbrew/log/build.log to see why.

日志文件中的內容如下:

checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... darwin
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/Volumes/Documents/Users/nathan/.pythonbrew/build/Python-3.2.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

我不知道config.log文件在哪里。

有任何想法嗎?

看來您必須從Apple安裝XCode才能獲得C編譯器:您可以從App-Store Xcode免費獲得它。

不幸的是,這是我所知的唯一途徑-而且下載量很大。

Mac OS X Lion默認情況下不包含gcc -實際上,如果您安裝了Xcode,則只有clang(LLVM的C前端)。 假設已經安裝了該程序,則可以通過將no without-gcc標志傳遞給configure腳本來安裝Pythonbrew。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM