簡體   English   中英

為python 3.4 pip安裝igraph:編譯器錯誤

[英]pip install igraph for python 3.4: compiler error

我想在Mac OSX 10.10上為Python 3.4安裝python-igraph

當我做

jenny$ pip3 install python-igraph

我懂了

checking whether the C compiler works... no

configure: error: in `/private/var/folders/q7/jc5nc2px3p1_sr6gnj7749wc0000gq/T/pip_build_jenny/python-igraph/tmp/igraph.p_05kabc/igraph-0.7.1':

configure: error: C compiler cannot create executables

See `config.log' for more details



Extracting igraph-0.7.1.tar.gz...

Configuring igraph...

Could not download and compile the C core of igraph.



----------------------------------------
Cleaning up...
Command /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 -c "import setuptools, tokenize;__file__='/private/var/folders/q7/jc5nc2px3p1_sr6gnj7749wc0000gq/T/pip_build_jenny/python-igraph/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/q7/jc5nc2px3p1_sr6gnj7749wc0000gq/T/pip-vudi0il0-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/q7/jc5nc2px3p1_sr6gnj7749wc0000gq/T/pip_build_jenny/python-igraph

我檢查了這個類似的問題 ,並鏈接了githib問題 ,然后嘗試

pip3 install python-igraph --install-option="--c-core-version=0.7.1"

根據我發現的信息,基本上具有相同的錯誤。

基於該stackoverflow問題中的評論,我還嘗試在github上尋找python-igraph的開發人員分支,但我找不到它。

我有點迷路了。 誰能告訴我該如何安裝?

您是否安裝了交流編譯器? Xcode命令行工具怎么樣?

嘗試從終端執行以下命令:

xcode-select --install

然后單擊彈出窗口上的“安裝”按鈕。

安裝完成后,請使用以下命令驗證Xcode命令行工具的安裝:

gcc --version

然后再次嘗試安裝pip3。

暫無
暫無

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

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