![](/img/trans.png)
[英]Python module installation error: command 'gcc' failed with exit status 1
[英]biopython installation: error: command 'gcc' failed with exit status 1
我正在嘗試從Macbook pro OSX 10.9.4的源代碼安裝python軟件包biopython,
我在終端中運行python setup.py build
並收到此消息
running build
running build_py
running build_ext
building 'Bio.cpairwise2' extension
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.6.sdk
Please check your Xcode installation
gcc -DNDEBUG -g -O3 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -Qunused-arguments -Qunused-arguments -I/Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/include/python2.7 -c Bio/cpairwise2module.c -o build/temp.macosx-10.6-x86_64-2.7/Bio/cpairwise2module.o
clang: warning: no such sysroot directory: '/Developer/SDKs/MacOSX10.6.sdk'
In file included from Bio/cpairwise2module.c:12:
/Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx- x86_64/Canopy.app/Contents/include/python2.7/Python.h:33:10: fatal error:
'stdio.h' file not found
#include <stdio.h>
^
1 error generated.
error: command 'gcc' failed with exit status 1
我檢查Xcode應該正確安裝並正常工作
您應該使用pip
。 嘗試:
pip install biopython
卸載了Canopy之后,一切都像個魅力一樣...
嘗試安裝Canopy“軟件包管理器”>“可用軟件包”>“ Canopy軟件包”中可用的Biopython版本。
這樣,我在安裝Pyensembl時似乎已經解決了類似的問題,該問題也安裝了Biopython。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.