我正在尝试使用以下命令为 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
即使我安装了 xcode 4.5.1,该文件/Developer/SDKs/MacOSX10.6.sdk
似乎也丢失了。
MacOSX10.6.sdk
Apple 主页上的“Downloads for Apple Developers”中没有调用文件。我该怎么办?
附言。如果我不指定 python3,这一切都很好。