我正在尝试在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应该正确安装并正常工作
答案 0 :(得分:1)
您应该使用pip
。尝试:
pip install biopython
答案 1 :(得分:1)
未安装Canopy,一切都像魅力......
答案 2 :(得分:0)
尝试安装Canopy“Package Manager”&gt;提供的Biopython版本。 “可用套餐”&gt; “冠层包”。
这样,我似乎在安装Pyensembl时解决了类似的问题,也安装了Biopython。