我想用下面的命令Python3安装rpy2:
easy_install-3.2 rpy2
这给一些警告和错误:
warning: no previously-included files matching '*patch*' found anywhere in distribution
warning: no previously-included files matching '*diff*' found anywhere in distribution
warning: no previously-included files matching '.hg' found anywhere in distribution
no previously-included directories found matching 'dist'
gcc-4.2 not found, using clang instead
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.6.sdk
Please check your Xcode installation
build/python3_rpy/rpy/rinterface/_rinterface.c:51:10: fatal error: 'signal.h' file not found
#include <signal.h>
^
1 error generated.
error: Setup script exited with error: command 'clang' failed with exit status 1
该文件/Developer/SDKs/MacOSX10.6.sdk
似乎缺少,即使我已经安装的Xcode 4.5.1。
没有所谓的文件MacOSX10.6.sdk
在苹果主页上的“下载为苹果开发者”。 我该怎么办?
PS。 这一切运作良好,如果我不指定python3。