我在 Mac 上有点菜鸟,我的 python 安装拒绝承认我的 mac 上存在 rpy2 模块。看起来它只将其视为 Python 2.6 模块。如何使其在 2.7 中可见?我需要降级我的 python 吗?如果是这样,如何?在 RPy2 网页 ( http://rpy.sourceforge.net/rpy2_download.html ) 上,推荐使用 Python 2.6。谢谢!
mayumi@MAYUMI-iMac~:/ python --version
Python 2.7.6
mayumi@MAYUMI-iMac~:/ pip install rpy2
Requirement already satisfied (use --upgrade to upgrade): rpy2 in /Library/Python/2.6/site-packages/rpy2-2.3.8-py2.6-macosx-10.6-universal.egg
Cleaning up...
mayumi@MAYUMI-iMac~:/ python
Python 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpy2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named rpy2
>>>