Python debian上的rpy2安装问题
我已经尝试了我能想到的每一种安装方法来在我们的debian服务器上安装RPy2,不管怎样,我都收到了相同的消息。我已经在我的mac上成功安装并使用了它。有什么我可能遗漏的吗 开始Python debian上的rpy2安装问题,python,r,installation,debian,rpy2,Python,R,Installation,Debian,Rpy2,我已经尝试了我能想到的每一种安装方法来在我们的debian服务器上安装RPy2,不管怎样,我都收到了相同的消息。我已经在我的mac上成功安装并使用了它。有什么我可能遗漏的吗 开始 Processing rpy2 Running setup.py -q bdist_egg --dist-dir /opt/rpy2/egg-dist-tmp-oft2ko returned an empty string. returned an empty string. Configuration for
Processing rpy2
Running setup.py -q bdist_egg --dist-dir /opt/rpy2/egg-dist-tmp-oft2ko
returned an empty string.
returned an empty string.
Configuration for R as a library:
include_dirs: ('/usr/share/R/include',)
libraries: ('R',)
library_dirs: ('/usr/lib64/R/lib',)
extra_link_args: ()
# OSX-specific (included in extra_link_args)
framework_dirs: ()
frameworks: ()
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
warning: no files found matching 'MANIFEST
"
。
.
结束
./rpy/rinterface/_rinterface.c:3622: error: ‘embeddedR_isInitialized’ undeclared (first use in this function)
./rpy/rinterface/_rinterface.c:3622: error: ‘Py_False’ undeclared (first use in this function)
./rpy/rinterface/_rinterface.c:3634: error: ‘Py_None’ undeclared (first use in this function)
./rpy/rinterface/_rinterface.c:3635: error: ‘PySexpObject’ has no member named ‘sObj’
./rpy/rinterface/_rinterface.c:3637: error: expected expression before ‘)’ token
./rpy/rinterface/_rinterface.c:3650: error: ‘PySexpObject’ has no member named ‘sObj’
./rpy/rinterface/_rinterface.c:3652: error: expected expression before ‘)’ token
./rpy/rinterface/_rinterface.c:3665: error: ‘PySexpObject’ has no member named ‘sObj’
./rpy/rinterface/_rinterface.c:3667: error: expected expression before ‘)’ token
./rpy/rinterface/_rinterface.c:3680: error: expected expression before ‘)’ token
./rpy/rinterface/_rinterface.c:3694: error: expected expression before ‘)’ token
./rpy/rinterface/_rinterface.c:3705: error: ‘rinterface_unserialize’ undeclared (first use in this function)
./rpy/rinterface/_rinterface.c:3705: warning: implicit declaration of function ‘PyDict_GetItemString’
error: Setup script exited with error: command 'gcc' failed with exit status 1
谢谢您的帮助请尝试
sudo apt-get install python-rpy2
(或使用您喜欢的包装前端),因为该包装存在于发行版中。请尝试
sudo apt-get install python-rpy2
(或者使用您喜欢的打包前端),因为该包存在于发行版中。如果您使用
/configure--enable-R-shlib
,然后R安装在/usr/local/lib/R
所以您可以为您和root用户将这些行添加到.bashrc
export R_HOME=/usr/local/lib/R
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$R_HOME/lib
然后,您可以从pip安装或从tarball构建,如果您使用
/configure--enable-R-shlib
,然后R安装在/usr/local/lib/R
所以您可以为您和root用户将这些行添加到.bashrc
export R_HOME=/usr/local/lib/R
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$R_HOME/lib
然后您可以从pip安装或从tarball构建,正如中所指出的,有时缺少python开发人员(RHEL中的python开发人员)可能会导致这些问题。你可以用任何一种方法来修复
sudo apt-get install python-dev
或
或者其他用于安装python dev[el]的特定于操作系统的指令,如中所述,有时缺少python dev(RHEL中的python devel)可能会导致这些问题。你可以用任何一种方法来修复
sudo apt-get install python-dev
或
或其他特定于操作系统的安装python dev[el]非常感谢您的帮助,您似乎是新来的。你要求提问者做的是两件事:“向上投票”如果你喜欢,点击向上箭头来选择答案。如果你喜欢,点击勾号“接受”答案。你可以选择其中一个或两个(这是判断为“好”的常见答案)。非常感谢你的帮助似乎你是新来的。你要求提问者做的是两件事:“向上投票”如果你喜欢,点击向上箭头来选择答案。如果你喜欢,点击勾号“接受”答案。您可以选择其中一个或两个(这对于判断为“好”的答案来说很常见)。